-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Background
It seems the redirection happens only when the interaction popup opens, but what if opening a remote instance can automatically redirect to the home instance, with more generic method than being too implementation-specific?
(I saw you showed some interest in raikasdev/mastodon4-redirect#6 which also does the auto redirection)
Proposed solution
Mastodon and Misskey inject <link rel=alternative type=application/activitypub+json href=(object id)>
to the page, that way one can know the page can be loaded as an ActivityPub object. Since Mastodon has an API to resolve such object id, the extension can call the API to get a home instance URL and do the redirect.
Here is a proof of concept written as a userscript: https://gist.github.com/saschanaz/701908eb329af5991061f8813b5bf4bc
Alternatives
- Go contribute to https://github.com/raikasdev/mastodon4-redirect instead?: I figured it may be more useful to contribute to more active project, which is currently this one.
Additional context
(This may replace #104 and the existing Mastodon matcher)