• 0 Posts
  • 37 Comments
Joined 1 year ago
cake
Cake day: June 25th, 2023

help-circle














  • Also, there’s way too much trust in instances.

    I say there’s too much care about votes. Because someone can just give themselves infinite votes from their private instance, it makes it all the more worthless.

    Instances should have their own settings on what instances are allowed to keep a local copy.

    There’s a setting for that, it’s called the allowed list - configures who are allowed to federate with you. Beyond that - if it’s out, it’s out.


  • For transparency, this is what a Like payload looks like. The first part is just context for the activitiypub protocol and is pretty much the same for each message. The second part contains the actual data of the message, and the most personal detail in it is the url of your own profile, and the url of the post/comment you like:

    {
    	"@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1",
    	{
    		"lemmy": "https://join-lemmy.org/ns#",
    		"litepub": "http://litepub.social/ns#",
    		"pt": "https://joinpeertube.org/ns#",
    		"sc": "http://schema.org/",
    		"ChatMessage": "litepub:ChatMessage",
    		"commentsEnabled": "pt:commentsEnabled",
    		"sensitive": "as:sensitive",
    		"matrixUserId": "lemmy:matrixUserId",
    		"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
    		"removeData": "lemmy:removeData",
    		"stickied": "lemmy:stickied",
    		"moderators":
    		{
    			"@type": "@id",
    			"@id": "lemmy:moderators"
    		},
    		"expires": "as:endTime",
    		"distinguished": "lemmy:distinguished",
    		"language": "sc:inLanguage",
    		"identifier": "sc:identifier"
    	}],
    	"actor": "--URL OF THE USER PROFILE--",
    	"object": "--URL OF THE POST OR COMMENT--",
    	"type": "Like",
    	"id": "-- URL TO THE INSTANCE THAT PASSED THE MESSAGE--",
    	"audience": "-- URL TO THE COMMUNITY THE POST IS PART OF--"
    }