Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.89k stars 1.48k forks source link

How are comments/like/dislikes synced? #6400

Open BentiGorlich opened 3 months ago

BentiGorlich commented 3 months ago

Describe the desired information/correction

I cannot find any information on how comments, like and dislikes are synced between different instances. Coming from mbin and lemmy I would have though that those would be shared by an Announce activity from the channel (group) actor. But according to the documentation Announce is only supported on Video objects.

Chocobozzz commented 3 months ago

Hi,

I would have though that those would be shared by an Announce activity from the channel (group) actor

You mean the channel that Announced the Video would also Announce Note/Like/Dislike on this particular Video?

Currently PeerTube just sends a Create activity to actors involved in the video (Actors that shared the video + Video owner that is the account and so a Person, not the channel which is a Group)

BentiGorlich commented 3 months ago

Basically yes. You cannot announce a Note by itself (at least no one does), but you can Announce the Create actvitiy of it.

My observation is that with each Like and Dislike PeerTube sends an update activity which mbin currently interprets as an 'edit'. Which could be usedto fetch all likes and dislikes of a video, but it wouldput a lot of strain on both servers involved, because it would need go fetch a lot of data to gather the content of the 2 collections