mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.68k stars 262 forks source link

1.1.4 crashes when searching an Akkoma instance #468

Closed ymollard closed 1 year ago

ymollard commented 1 year ago

Mastodon for Androd 1.1.4 (45) crashes when typing at least 5 characters in the search bar from an account run by Akkoma 3.3.1-0-gba132a7 instance.

It seems to happens systematically, except in these situations:

Here are logs from the server, the search runs well up to 5 characters, and then after the second request the app crashed:

ip - - [17/Dec/2022:15:20:19 +0000] "GET /api/v2/search?q=barba&resolve=true HTTP/2.0" 200 18380 "-" "MastodonAndroid/1.1.4"
ip - - [17/Dec/2022:15:20:23 +0000] "GET /api/v2/search?q=barbatro&resolve=true HTTP/2.0" 200 1049 "-" "MastodonAndroid/1.1.4"
sk22 commented 1 year ago

in my experiences, crashes seem to happen when the search result contains a hashtag - because, as it seems, akkoma doesn't provide the "history" property, which mastodon for android expects to be not null