Closed AAGaming00 closed 1 year ago
Mastodon and Lemmy don't really have a good way to directly send their default frontends URLs.
Mastodon expects https://instance/user@domain[/postId]
, which would be possible to construct from a full URL, but only if it's also a Mastodon URL and not Friendica, Pleroma, etc, which use different URL formats.
Lemmy has different post IDs for the same post depending on which instance you're viewing it on. https://lemmy.world/post/12345
might be https://lemmy.ml/post/54321
and there's no static way of looking that ID up.
Would it be possible to allow some kind of user-specified url template that you replace keywords in
i.e. https://instance.url/objects/%postID or something
That doesn't address the issue of how the app can know what the post ID is from an incoming URL.
ah fair
Would it be possible to allow people to simply redirect to their own instance's URL so it would launch the PWA?