this post was submitted on 09 Dec 2023
61 points (91.8% liked)
Fediverse
28480 readers
787 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
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general 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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How does it subscribe when lemmy doesn't have subscribing or notification apps? Does it just poll the server? (As a server owner the amount of traffic there worries me, and that could cost me depending on implementation)
If it's polling, how do you know to stop polling? Will it just poll a post forever?
Its polling every 30th second only on my instance. So don’t worry, it will not make any difference for you ✌️
in theory as you operate both the server and the bot you could modify lemmy to tell the bot when a new comment hits a thread instead of polling, which would be more efficient (but definitely harder to do!)
also does it handle the case where nobody from your instance is following a community? to make sure you get all the replies reliably the bot would need to subscribe to each community it's watching a post from
that said, great work. I may end up using it if I don't end up forgetting about its existence :p
I’m using a library named lemmy-bot. To achieve what you say, I need to modify both library and lemmy server. As you can guess, I can’t afford time for these 🙂
I think it’s not using much resources anyways. 2 requests per minute is nothing compared to hundreds of ActivityPub requests per second.
I didn’t tested non-followed community, but the bot works with mention event instead of comment. But still not sure, I’ll test this one 🙏
oh, I meant for the actual post watching part, summoning via mention should work without any subscription
I think to get mentioned comment, it needs to get parent post too. As I said, I need to test it. I can only assume right now.