megalodon icon indicating copy to clipboard operation
megalodon copied to clipboard

Support `/share` endpoint when sharing to Megalodon

Open florian-obernberger opened this issue 1 year ago • 2 comments

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) ^^'

florian-obernberger avatar Aug 25 '23 11:08 florian-obernberger

never actually heard about that endpoint. and yep, makes sense, good idea!

sk22 avatar Aug 25 '23 11:08 sk22

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

florian-obernberger avatar Aug 25 '23 13:08 florian-obernberger