this post was submitted on 06 Aug 2023
59 points (90.4% liked)

Fediverse

28470 readers
767 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS
 

Hello,

It's hard to find information about this in this early stage of Lemmy.

I know that there is a protocol "ActivityPub" that kind of allows communication between Fediverse platforms and instances.

My use case is the following one: If a specific person posts a tweet/toot on Mastodon, I want to automatically create a post in a Lemmy community.

Can you give me some tips how to achieve this? I'm a software developer by the way, so writing code is not a problem. But is it even necessary to write code?

all 15 comments
sorted by: hot top controversial new old
[–] earned_myself_a_gin@lemmynsfw.com 21 points 1 year ago (2 children)

I'm a software developer by the way, so writing code is not a problem. But is it even necessary to write code?

Clearly an experienced software developer

[–] Klaymore@sh.itjust.works 13 points 1 year ago* (last edited 1 year ago) (1 children)

If you copy the URL of one of their posts and paste it into the search bar of your Lemmy instance (you might need to refresh a couple times, and make sure the filter is set to all), then you should be able to view what community it's posted in on your Lemmy instance and subscribe to it as normal. Then all new posts should automatically sync to your Lemmy instance and show up as a post. I subscribed to a Peertube channel this way and it worked.

Edit: changed from searching for user to searching for post and subscribing to it's community.

[–] OldFartPhil@lemm.ee 3 points 1 year ago (3 children)

I'm not sure that actually works. You can search for a Mastodon user, but when you try to subscribe the sidebar buttons are missing on Lemmy.

My understanding is that you can subscribe to a Lemmy community in Mastodon, but not the other way around. Maybe there's a trick I'm missing?

[–] Coelacanth@feddit.nu 5 points 1 year ago (2 children)

Lemmy has no support for following individuals as far as I know. As others have mentioned, Mastodon users can post to Lemmy by @-ing a community, and Lemmy users can interact with that post normally, and with any replies in it (or other replies made by Mastodon users).

It's possible Lemmy users could directly @ Mastodon users, though I don't have Mastodon, so I'm not sure.

If you want to be able to follow both communities and individuals, then that is basically the selling point of Kbin, though Kbin isn't for me so I don't know exactly how it works and where in your feeds posts by individuals you follow shows up.

[–] aebrer@kbin.social 4 points 1 year ago

Only saying this for general informational purposes, but if you want to be able to follow Lemmy and Mastodon content and post either, kbin supports that out of the box (masto style content is called "microblogs")

[–] Rootiest@lemmy.world 1 points 1 year ago (1 children)

It's possible Lemmy users could directly @ Mastodon users

Let's see..

@rootiest@fosstodon.org

[–] Klaymore@sh.itjust.works 2 points 1 year ago

Ah yeah it shows up as a user not a community. I think if you search the URL of one of their posts you can see the community it's posted in and subscribe to that.

[–] wegettosss@lemmy.world 2 points 1 year ago

I cant find sidebar either

[–] Bishma@discuss.tchncs.de 6 points 1 year ago (1 children)

You can post from Mastodon to Lemmy by mentioning the name of the community in your post using the @ communityName @ serverName.tld format. The first line of your lemmy post becomes the thread title and the reminder becomes the body.

[–] DharkStare@lemmy.world 4 points 1 year ago (1 children)

I tried this out on my mastodon account and it worked really well. Honestly, if browsing communities on Mastodon wasn't such a nightmare I wouldn't even need the Lemmy account.

[–] Bishma@discuss.tchncs.de 4 points 1 year ago

I'm hoping one day we'll be able to follow communities in mastodon using the ! channel @ serverName.tld notation. It could simplify the way people maintain mas groups as well.

You can follow communities not using the double @, but all that turns up in your mastodon feed are boosts.