147
submitted 11 months ago by Tehhund@lemmy.world to c/asklemmy@lemmy.ml

Does ActivityPub send those to other instances, or does ActivityPub only send the original post and the rest (upvotes, downvotes, replies) are stored only on the original server where the post was made?

top 50 comments
sorted by: hot top controversial new old
[-] Empricorn@feddit.nl 115 points 11 months ago

Since you've gotten enough real answers, I'll just remind you that upvotes are stored in the balls.

[-] Tehhund@lemmy.world 20 points 11 months ago

Truth. /thread

[-] iso@lemy.lol 58 points 11 months ago

All of those are replicated to all servers.

[-] Teppic@kbin.social 35 points 11 months ago* (last edited 11 months ago)

Posts and comments are federated (synchronised). Upvotes are actually a bit of a fudge, they are actually 'Favourites' if considered from an activity pub (e.g. Mastodon) perspective, and yes favourites are also federated.
Downvotes don't exist in activity pub and, as a result, they do not federate between instances.
At least that is my understanding.

[-] Max_P@lemmy.max-p.me 36 points 11 months ago* (last edited 11 months ago)

Downvotes do federate, ~~but it uses protocol extensions to do it. So the downvotes won't federate to Mastodon~~, but it does for Lemmy and I think Kbin too

[-] nutomic@lemmy.ml 17 points 11 months ago

Votes federate with standard Like and Dislike activities which are part of Activitypub. It's just that some platforms like Mastodon can't handle Dislikes.

[-] ShellMonkey@lemmy.socdojo.com 4 points 11 months ago

Can't handle by choice I'd guess. Given the format of individuals following individuals rather than topics in communities it doesn't make much sense for a person to follow someone only to downvote/dislike their comments.

[-] AlexWIWA@lemmy.ml 14 points 11 months ago

Honestly votes being federated seems like a bad idea imo. Would be easy to spin up an instance with thousands of fake users and manipulate posts.

Fediverse is already big enough that it could be lucrative to do so.

[-] Shadow@lemmy.ca 29 points 11 months ago

So then everyone just blacklists that instance. If the problem is really severe, we move to whitelisting.

It's not hard to identify when someone is doing this.

[-] Rogue@feddit.uk 10 points 11 months ago

A whitelist defeats the decentralisation and openness of a defederated system.

I think you're mistaken in your assumption it would be easy to identify malicious instances. Bots are notoriously difficult to fight, every time you block one method another workaround will appear.

[-] Shadow@lemmy.ca 14 points 11 months ago* (last edited 11 months ago)

I think you’re mistaken in your assumption it would be easy to identify malicious instances. Bots are notoriously difficult to fight, every time you block one method another workaround will appear.

I run a large instance and I look around in the DB occasionally when users complain, so I'm pretty familiar with what's in there.

A whitelist defeats the decentralisation and openness of a defederated system.

True, but assholes are assholes and sometimes freedom and assholery don't mix well.

[-] AlexWIWA@lemmy.ml 9 points 11 months ago

It's not hard to identify if you're looking for it, they just use one instance, they aren't subtle about it, and they are only boosting a specific company instead of a variety of products and ideas.

Vote manipulation is hard enough to detect on Reddit where they have visibility top to bottom. I think this will become a major issue in the future.

This is on top of the already significant scaling issues votes are causing.

Other instances can cache the total count for historical reasons, to preserve lost instance vote counts, but keeping the full ledger is going to be a serious barrier to entry for hosters and a security (manipulation) issue.

[-] merthyr1831@lemmy.world 2 points 11 months ago

I disagree. Reddit openly admitted to manipulating its upvote count to "deter bots", especially since it became apparent that the front page of reddit became a very lucrative position to be if you were promoting a product, service, or ideology. In the post API world of Reddit, it's more apparent than ever that votes are being manipulated to give users an illusion of activity that isn't actually there.

In fact, Reddit's manipulation was always as easy as paying someone to upvote a post a few hundred times within an hour of posting which in turn boosted it on the algorithm that displayed leading posts based on rate of activity instead of actual upvotes.

On the fediverse, being on the front page of an instance isn't nearly as lucrative, and being on the front of ALL of them isn't feasible. Even if one instance is manipulated, federation makes that effort null in seconds.

The fact these services aren't monetised, are volunteer-funded, and don't have the economic or advertising power as reddit does, really makes it harder for votes to be manipulated, let alone make someone want to manipulate the service.

Lemmy and Mastodon have issues with moderation but at worst the manipulation risk is nowhere near as bad as reddit. At best, it looks like corporate manipulation of social media is all but nonexistent on here. Let's celebrate that

load more comments (1 replies)
[-] PoliticalAgitator@lemm.ee 2 points 11 months ago

Would it change anything besides their technique?

They almost certainly already have vote manipulation tools for reddit that work via browser automation, because someone offered me money to build one 10 years ago.

Those tools and a handful of accounts+vpns would already be borderline undetectable without the access needed to see that 25 accounts always voted the same way.

At least on Lemmy, you have that access. Reddit not only makes zero effort to prevent it, they actively obfuscate the information needed to spot it.

[-] Send_me_nude_girls@feddit.de 11 points 11 months ago* (last edited 11 months ago)

Technically votes are public. Only UI is hiding them. Which should be resolved, one way or another.

Edit: there was a post with that here a few weeks ago. I understand that this isn't a real answer to your question. Maybe you find it with these hints.

Edit2: Found it. Here you'll find more. https://mylemmy.win/post/89871

[-] pinkdrunkenelephants@lemmy.cafe 3 points 11 months ago

Meaning admins are purposefully allowing other people to brigade others with alts.

Lemmy fucking blows.

[-] Fisch@lemmy.ml 4 points 11 months ago
[-] pinkdrunkenelephants@lemmy.cafe 11 points 11 months ago* (last edited 11 months ago)

Lemmy admins can see who is using alts to brigade others and ban them, yet they clearly don't. They allow all kinds of skeevy bullshit from everyone -- it took months of pressure to get them to even do so much as ban obvious problem instances like Hexbear.

They do it because they are selfish assholes who only care about power, and everyone just accepted they're the dominant class in our little society here and that the big name instances like .world and .ml are perfectly fine with controlling the majority of content on the platform. It was never what was intended for federation in the first place, yet here we are.

Lemmy sucks as a platform because it's not programmed to circumvent people's base animalistic hierarchial nature and that is its problem.

The platform should automatically track for obvious alt and bot accounts and ban them.

It really should have a toggable hate filter that automatically bans people for using certain hate terms.

Accounts need to be tied to user machines so bans are actually halfway enforceable.

The platform shouldn't really require mods or admins; an AI should monitor interactions and stop arguing or antagonistic encounters outright.

The admins should be acting fairly and impartially.

But none of that is happening because no admin is participating in good faith, they're just looking to ensure they can do what they want without consequences, and so are the mods who have claimed almost every old subreddit name across instances under a few select usernames so they could have power over others and win confrontations.

And people can get away with power tripping because the platform wasn't designed to take the fact that people do that into account. Any platform or social system that is not built on the first principle that humanity is inherently evil is bound to fail, and look what happened here. Perfect example.

[-] merthyr1831@lemmy.world 2 points 11 months ago

And you trust literally any other social media website's impressions count?

[-] Vex_Detrause@lemmy.ca 10 points 11 months ago

Where is my karma stored? ^/s

[-] Unsustainable@lemmy.today 5 points 11 months ago

It's under my bed. You'll have to pay me $10,000 to get it back.

load more comments (1 replies)
[-] peereboominc@lemm.ee 8 points 11 months ago

What if someone sets up an instance, make a post and manipulate the upvotes? Just give it a million upvotes. That would break the whole system..

Or a bit more subtle, every upvote is multiplied by 10.

[-] Max_P@lemmy.max-p.me 15 points 11 months ago

Individual votes are federated but not by number but by user, so you'd have to set up fake users and then federate a vote from each of them.

That makes it rather easy to detect and identify and get that particular instance defederated.

Votes will still go from origin instance -> community instance -> other instance, be if the other instance has defederated the origin instance then it simply gets dropped.

[-] Teppic@kbin.social 8 points 11 months ago

If you use kbin you can even see who has made each upvote, so yes easy to then look for patterns of voting together and also at the profiles to see if the accounts looks like real people etc.

[-] jabberati@social.anoxinon.de 1 points 11 months ago

So the cost of getting a post on the front page of every Lemmy instance is the cost of registering a new domain.

[-] Max_P@lemmy.max-p.me 4 points 11 months ago

Until a mod catches it and reports it to the admins, yeah.

Lemmy isn't the absolute most well thought out platform in many regards, I don't think anyone expected Reddit to actively go hostile and drive such an amount of users to Lemmy.

[-] cm0002@lemmy.world 5 points 11 months ago

Lemmy isn't the absolute most well thought out platform in many regards, I don't think anyone expected Reddit to actively go hostile and drive such an amount of users to Lemmy.

Def not, I'd say Lemmy was at least a few years out from being stable and on par with Reddit as far as software goes. There are still fundamental questions and problems that need to be answered and solved.

I say was because Reddit going hostile and driving such a large influx of users is a bit of a double edged sword. On one hand it was just barely ready for more active use, but not to scale.

OTOH, the large influx is also driving accelerated development so Lemmy was years out before, but what about now now that it's getting all this focus and drive to get things done, that I do not know, but I'd say it's much faster than it was before

[-] kglitch@kglitch.social 6 points 11 months ago

The first one.

[-] iso@lemmy.dbzer0.com 3 points 11 months ago

haven't worked with AP yet, but as a webdev I'm certain it's original server only. Syncing upvotes between nodes would be an insane datavolume and one hell to properly keep in sync to begin with.

[-] kglitch@kglitch.social 16 points 11 months ago

They are synced. There is an insane data volume, yes. It is hell.

[-] iso@lemmy.dbzer0.com 6 points 11 months ago

no way, that's a massive oof o.O

[-] kglitch@kglitch.social 7 points 11 months ago

Yeah. A lot of hand-wringing has gone on about it, e.g. https://gist.github.com/jdarcy/60107fe4e653819138396257df302eef. I'll post this and then show you a video of server activity that results.

[-] kglitch@kglitch.social 3 points 11 months ago
[-] kglitch@kglitch.social 7 points 11 months ago

Here is a screencast of what happens to my 2 core server when I post something - https://kglitch.social/activitypub_cpu_and_net.mp4.

I run a single user instance, more or less, so there is little chance of some other user causing this load.

Some of it will be due to the way Kbin is built but I believe any software using ActivityPub to communicate will run into similar issues sooner or later, especially with network traffic usage.

[-] ShrimpsIsBugs@feddit.de 3 points 11 months ago

Damn that's crazy. Thanks for the demo

[-] iso@lemmy.dbzer0.com 1 points 11 months ago

Completly off-topic, but what's that dope af htop replacement?

[-] howrar@lemmy.ca 2 points 11 months ago

Looks like btop

[-] kglitch@kglitch.social 2 points 11 months ago

btop!

It's very pretty.

load more comments (4 replies)
[-] Dave@lemmy.nz 10 points 11 months ago* (last edited 11 months ago)

My instance has 800 users, is 4 months old, and the database only is over 30GB. It is an insane amount of data.

[-] Scrollone@feddit.it 3 points 11 months ago

How much RAM does your server have to handle a 30 GB database?

[-] Dave@lemmy.nz 2 points 11 months ago* (last edited 11 months ago)

I'm a bad example. I haven't properly tuned the settings, currently RAM will grow to whatever is available.

I'm very lucky, the instance is running in a proxmox container alongside some other fediverse servers (run by others), on dedicated hardware in a datacentre. The sysadmin has basically thrown me plenty of spare resources since the other containers aren't using them and RAM not used is wasted, so I've got 32GB allocated currently. I still need to restart once a week or that RAM gets used up and the database container crashes.

It's been on my list of things to do for a while, try some different postgres configs, but I just haven't got around to it.

I know a couple of months back lemmy.world were restarting every 30 mins so they didn't use up all the RAM and crash. I presume some time and some lemmy updates later that's no longer the case.

I know some smaller servers get away with 2gb of RAM, and we should be able to use a lot less than 32GB if I actually try to tune the postgres config.

[-] nutomic@lemmy.ml 2 points 11 months ago

There is a postgres command to show the size of each table. Most likely it is from activity tables which can be cleared out to save space.

load more comments (7 replies)
[-] skullgiver@popplesburger.hilciferous.nl 6 points 11 months ago* (last edited 10 months ago)

[This comment has been deleted by an automated system]

[-] Tehhund@lemmy.world 4 points 11 months ago

Thanks, that's very informative. How does this work since ActivityPub can be used for other things, e.g., Mastodon? They ignore any "Type" entries that they don't support?

[-] skullgiver@popplesburger.hilciferous.nl 8 points 11 months ago* (last edited 10 months ago)

[This comment has been deleted by an automated system]

[-] Max_P@lemmy.max-p.me 5 points 11 months ago

It does sync them, I can even query all of your votes on my local DB for every community my instance is tracking.

[-] shinigamiookamiryuu@lemm.ee 2 points 11 months ago

The mod log at the bottom of any Lemmy webpage, I think.

load more comments
view more: next ›
this post was submitted on 15 Oct 2023
147 points (100.0% liked)

Asklemmy

43432 readers
1359 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS