mastodon / mastodon-ios

Official iOS app for Mastodon
https://app.joinmastodon.org/ios
GNU General Public License v3.0
2.04k stars 259 forks source link

[BUG] Moderation-blocked images attached to posts are silently removed (should be noisily removed) #1338

Open mcclure opened 1 month ago

mcclure commented 1 month ago

Is there an existing issue for this?

Current Behavior

There is an instance misskey.design. Many US/EU instances block image attachments on misskey.design due to the server hosting some adult content which is legal in misskey's jurisdiction but possibly not in other countries. This policy is longstanding and the policy is not itself the problem.

There's a post here: https://misskey.design/notes/9wj97s1whc Posted by user: https://misskey.design/@demidoro It is not adult content. It is the words "夏だね" and an animation of a girl looking out a window.

When viewed on the official iPhone client for Mastodon, this post shows only the words 夏だね. Not only is the image missing, there is no indication that content is missing:

image0

Expected Behavior

The expected behavior is that the post should have some visual indicator showing that an image is missing. Tapping on the missing-content indicator should cause the missing content to be loaded from its original server.

For example, this is what appears on Mastodon.social web ("expected behavior"):

image

Tapping the "preview not shown" links you directly to the host server.

Meanwhile this is what appears in Tusky for Android (also "expected behavior"):

Screenshot_20240806-160600

(This is not as good as Mastodon web because tapping the button sends you to a dead link, but it at least it shows you something is missing.)

According to my friend Misty, Ivory for iPhone also has the expected behavior.

Steps To Reproduce

I do not have an iPhone to test on, however, I have confirmed the issue on two devices:

The fact it reproduces on digipres says to me this is not a server-related issue and the fact Tusky does not have the same problem indicates that it is not a problem with the API per se.

Environment

See above

Anything else?

The official Mastodon client for Android has this same problem in my testing, I filed a separate bug.

mcclure commented 1 month ago

Updated initial post due to an incorrect image uploaded in place of screenshot.