this post was submitted on 09 Jun 2023
2 points (75.0% liked)

Lemmy.ca Support / Questions

483 readers
1 users here now

Support / Questions specific to lemmy.ca.

For support / questions related to the lemmy software itself, go to [email protected]

founded 3 years ago
MODERATORS
 

Does Lemmy use the ActivityPub protocol? If so can a Mastodon client be used to interact with Lemmy communities?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

Both speak ActivityPub and yes you can use a Mastodon client to interact with Lemmy communities.

I did a bunch of experiments today and ... thoroughly confused myself.

Here's what I learned:

(I have more protocol info but ultimately this is the lived experience of working across different software systems, federation, and the actual client / front end web experiences that people interact through)

Various things "just work" by pasting URLs into the Mastodon web interface or the Mastodon mobile app.

Screenshot of Mastodon Web UI posting in a Lemmy URL

Posting the link to this post https://lemmy.ca/post/606549 finds this post

Clicking on the user profile shows me a profile for [email protected], with one post displayed. Including a follow button

Only one post is shown, because that's all that's available on the local server right now. If I chose to follow Doctor_Pi's Lemmy account, I'd get all of their posts going forward. Both OPs (which has a link to the post on Lemmy.ca) as well as comments (which appear as replies).


Other clients (Ivory on iOS) have extremely variable support. You can't usually paste in Lemmy URLs, but you can paste in Lemmy accounts and follow them, and then see posts going forward.

You can't create an "original post" using just a Mastodon account, you have to have a Lemmy account and create it somewhere (I'd love this to be not true, and maybe we can make this a feature request!)

Every Lemmy user can be followed on Mastodon. So, for example, my Lemmy account @[email protected]. Paste that into the web interface of Mastodon or into the Mastodon native mobile app and you will find my Lemmy profile and can follow it.


If you reply to a Lemmy post using your Mastodon account, your reply will be posted as a comment. A user profile is created on the Lemmy instance.

I just did that with this very post, and it seems to have worked.

Screenshot of Boris' CoSocial Mastodon profile, viewed here

This is my [email protected] Mastodon account, viewed through news.cosocial.ca as a local user profile. All of that info -- including the images -- are from my Mastodon profile.

The comment is technically originally on Lemmy.ca.


I'll leave it there for now. Still exploring different combinations. I have two questions / features I'd like to enable for Lemmy <> Mastodon.

  1. ~~Being able to create OP directly from Mastodon~~ works!
  • You'd be limited by character limits, lack of more formatting, no inline images, and so on. Depending on your Mastodon server you might have larger character limits, or something like the Elk or Phanpy web front ends could enable "Lemmy mode" from your Mastodon account.
  • If I were designing this, I'd do it as maybe a DM to the group account. e.g. DM @[email protected].

This does work, see @smorks, and his post on Mastodon.

  1. Logging in to a Lemmy instance with your Mastodon account
  • If it's already creating profiles for Mastodon accounts, why not go all the way and just use your Mastodon account to login? You need to trust your Mastodon host more than your Lemmy host.
  • More likely: a "linking" mode, where you do need a "local" account, but you can link it with your Mastodon account so there aren't two of you :)
[–] [email protected] 3 points 1 year ago (1 children)

i'm pretty sure you can create lemmy posts directly from mastodon.

i just did it here: https://lemmy.ca/post/823311

basically, you just have to mention a lemmy community (which masto considers groups), and that creates a post.

you can also follow lemmy communities from your mastodon account as well.

i'm not sure what happens when a community and user have the same name though, because both seem to just use the @[email protected] format.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

OK, this is VERY good. And just mention it anywhere? Hmm. Does the first link or image end up in the link or image field in Lemmy? I'll try your test group!

Ah yes, I didn't mean to skip group / community following, and I am following some already. The note there is that the communities don't make posts -- they boost the posts of the OP account posts / commenter posts (this would be a good screenshot too). I need to put all of this probably on a page on cosocial.info as a permanent FAQ.

You're right, if I were to create user [email protected], that would overlap with a group named vancouver. On lemmy, it's @ vs ! of course.

Feels like Lemmy should check for that and not allow it? My lag on sign up makes it annoying to test. One of the things I need to ask you about.

[–] [email protected] 2 points 1 year ago

i can give it a quick test here, i'm curious to see what happens. will report back tomorrow with the results!

[–] [email protected] 2 points 1 year ago

@boris @Doctor_Pi I noticed I can post from Mastodon to Lemmy, but it's not visible if I filter by "New".

Somehow people find it though, because I have gotten comments on my posts.