-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crashes upon trying to view edit history #3743
Comments
How are you getting to the post to view it remotely? If I search for it in Tusky and then get the edit history it works. It's fetching the edit history via mastodon.social at that point, so I assume mastodon.social has a copy of it by now (as the API requests to get the history use https://mastodon.social/api/v1/statuses/110522895377418614/history which is not the same status ID as in the link). |
So it seems the crash only happens on certain instances. I managed to reproduce on 433.world and tooot.im but not on toki.social where there was no crash. In the case of the crashes - on tooot.im it simply appeared in my timeline and crashed upon trying to view the edit history (from that point on it crashes consistently regardless of how I reach it). I then opened the same post on 433.world using the "open as" button, where it again crashed upon trying to view history (and now crashes consistently regardless of how I reach it). I do see boosts for the post from all three instances, which would suggest it was cached in all three before me opening it, but it is possible in toki the post was boosted before the edits and in the others not, or vice versa. |
To make sure I have this straight:
Is that right? If not, please can you write down a complete reproduction recipe. I do see some crashes in the Play store when edits are being viewed. The crash indicates that when Tusky makes the API call to get back the list of edits the list has no entries. This is one of those "can't happen if everyone is behaving as documented" bugs, as the only way to get to that code path is if the post definitely has edits, and the Mastodon API documentation for that API call (https://docs.joinmastodon.org/methods/statuses/#history) says:
So at the very least this call should always return a list with 2 entries (1 is just about arguable if you called this on a status with no edits, but Tusky doesn't do that). It should never return an empty list. So I think this is a Mastodon bug (or a bug in a server that's implemented the Mastodon API badly). So I want to try and track down the exact bug so I can both work around it in Tusky and report it to the server authors. |
100% correct. |
OK. 443.world appears to be down when I go to it, and tooot.im registration is by invitation only. Can you send me an invite ([email protected]) and I'll create an account there and see if I can reproduce. Thanks. |
Sent. I can also see if I can get you an invite to 433.world if that's needed. |
Thanks. I can repro this with a tooot.im account, looking in to what's going on now. |
OK, so this is mastodon/mastodon#25398, which I've just filed. I'll have a think about the best way to work around it. |
This can happen if the edit history has not been propogated to the user's server. If the edit history is missing then show an error with a link to the specifc Mastodon issue. Fixes #3743
Trying to view the edit history of this post results in a crash.
Edit history is available when viewing on OP instance, but not when viewing remotely (see screenshot) which I assume is the source of the crash.
Tusky Version: 22.0
Android Version: 12
Android Device: Samsung Galaxy A12
Mastodon instance (if applicable): spore.social (posted), multiple (viewing)
I searched or browsed the repo’s other issues to ensure this is not a duplicate.
The text was updated successfully, but these errors were encountered: