this post was submitted on 23 Nov 2023
15 points (100.0% liked)

Lemmy

12548 readers
50 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

Does Lemmy have anyway to pre-fill the Create Post details from the URL? For example Reddit allows for: https://www.reddit.com/submit?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F24823114%2Fpost-to-reddit-via-url&title=Post%20to%20Reddit%20via%20URL.

I'm aware that this gets slightly tricky across instances (due to different domains), however I was hoping to build a system where the user enters their Lemmy domain, and it takes them to a page so they can create a post about a given URL.

Any ideas?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] lemann@lemmy.one 5 points 1 year ago (1 children)

You mean like a share button on a site that opens the lemmy Create Post page, on a user's registered instance, with link address and title pre-filled?

I think the federated nature of Lemmy alone makes this more trouble than it's worth, and you'd need to consider that Lemmy users don't all use the same web interface - some use Photon, some use Mlmym, some use Alexandrite etc. These changes would need to be introduced in each individual one most likely...

I think it's easier just to allow users to share the link to lemmy themselves. On desktop they can copy the link, on mobile they can share to Jerboa or whatever app, just provide the buttons for either I guess

For Mastodon there is something called Tootpick which allows you to enter your server's domain and share any content by redirecting the user. For example: https://tootpick.org/#text=https://eventfrontier.com/post/37808. So I'm not quite sure the federated nature argument makes sense. Sure it's more complicated that a centralized system, but possible regardless.