megalodon
megalodon copied to clipboard
Support `/share` endpoint when sharing to Megalodon
Mastodon along with many other Fediverse servers support a /share
endpoint that allows for post creation. So for eg. https://floss.social/share?text=This%20is%20a%20post would create a post for you on floss.social (given you are logged in).
It'd be awesome if Megalodon could support those. Now what do I mean by that?
When you share a link to Megalodon and this link is a link to one of the instances the user is logged in to and features the share endpoint Megalodon should open up the create post view and prefill it with the text encoded in ?text=
. The account it should be posted from should be the same as the instance. If there are two users from the same instance, the user should be able to choose.
I hope I explained it well (enough) ^^'
never actually heard about that endpoint. and yep, makes sense, good idea!
I came across it some while ago and am using it inside if Doable, that's when I noticed that it isn't supported :D