v1.4 – Mastodon redirection for API-private toots
This release contains some new and improved translations and a timeout for the API, but most importantly fixed one critical bug in the redirection of toots, which were not exposed by the Mastodon API (#71). This lead to the problkem that when you interact. Following remote accounts was not affected, as the add-on works differently here and just gets the account name from the URL directly without any API query being involved.
The underlying issue here was, that some forks and some users have a mode/setting that allows them to only let authenticated users access their toots via API. In such a case, as the add-on does not authenticate on the server, it could not request any details it needs about the toot.
To support this use case and others, where the API request may fail due to unexpected stuff, the add-on could already fallback to HTML scraping. This feature got the toot ID from the popup that loads by default and was included since v1.2, where it was restored from an the old code before the API was used.
However, that fallback had a race condition bug that only made it work when the HTML scraping was faster than the API request, which hardly was the case in case of a server promptly responding with an authentication failure. This has been fixed to use the fastest method available and wait for the alternatives in case of one fails. See the PR that fixes this for technical details.
All notable changes
- New: All network requests e.g. to the Mastodon API now have a timeout of five seconds to handle servers not responding correctly. (#72)
- New: The translation for Brazilian Portuguese has been added, thanks to @paulo-roger.
- Fixed: A bug has been fixed that could cause an issue with redirection of toot interactions when the toot is only available to authenticated users via the Mastodon API. (#71)
- Fixed: A bug has been fixed that resulted in the redirection not being catched in case of newer Friendica versions. (#62)
- Improved: The translation for French has been updated, thanks to @le-jun.
See all closed issues and pull requests and the git history for details about this release.
Contributors
Thanks to all contributors to this release!
In addition to those mentioned above, again thanks to @viviicat for reporting and helping to debug the Mastodon problem in all details.
Download
Download this version from AMO.