sk22 / megalodon

Pink modification of the official Mastodon for Android app
https://sk22.github.io/megalodon
GNU General Public License v3.0
549 stars 33 forks source link

Support `/share` endpoint when sharing to Megalodon #773

Open florian-obernberger opened 1 year ago

florian-obernberger commented 1 year ago

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

sk22 commented 1 year ago

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

florian-obernberger commented 1 year ago

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