Conversation
Fetch federated instances on account login/switch as well as done async so to not block ui.
|
I tried running the app locally for a quick test on my device; however, it seemed like the app was hanging on something when the home feed tried loading, as the loading indicator never went away. I'll loop back to this pr to review it more after I take a look at the others. |
…n a dynamic list generated at runtime. Handle deeplinks.
|
I've updated this to use a static list of known instances rather than fetching a list at runtime which should be more stable. I pretty much copied the script for fetching a list of instances from Thunder so thanks to them. I'm also using this new list for handling deeplinks. Deeplinks can either be enabled for Interstellar specifically or by going through LemmyRedirect. |
|
Since there have been some additions to Mbin recently that are related to this PR I think we should wait til Mbin's next full release before merging. |
Open activitypub links in the app instead of opening in a browser.
On app start/ account login fetches list of federated instances and caches locally. When a link is clicked the host is matched against this list to determine whether it is an activitypub server or not. If it is then attempt to resolve the url and open the appropriate post/comment route.To resolve the url
/resolve_objectis used on lemmy and piefed and/searchis used on mbin.On mbin it can be kind of slow and doesn't always resolve urls properly. Testing these urls https://kbin.earth/m/testing/t/2536658 about half worked properly on mbin while piefed handled all of them.