steve-bate / activitypub-mincore Goto Github PK
View Code? Open in Web Editor NEWAn exploration into an ActivityPub Minimal Core.
License: MIT License
An exploration into an ActivityPub Minimal Core.
License: MIT License
I've implemented an initial version of validation and extension with JSON Schema, but I think there are better ways to do it.
This could be interesting. In AP an Undo
refers to an activity ID, which requires the activity (or at least the ID) to have been stored. In the Follow
case, another option is to use the actor
property to find the actor's inbox
and remove that from any internal follower inbox data.
if your goal is to be compatible with most fedi impls, this is not enough. you specifically need to declare a type that is one of the five types in AS2 or else Mastodon/Pleroma/Misskey/etc will reject it
however: is that indeed the aim, or is the aim to be minimal activitypub? i would also like to make the point that extensions will almost certainly have multiple types, so this is something that ought to be considered at least on the consuming side, even if not for the single actor being produced. (per https://matrix.to/#/!uHqAjmOtrLtidOiczC:matrix.org/$LKdlBM3fEStSux5SDXFSwnGATPNtMLFssS99J2FB7q0?via=matrix.org&via=mozilla.org&via=beeper.com and related discussion above that point)
'minimal core' implies this is a subset of the requirements of AP/AS2 but it actually is a superset
This isn't a core, it's the opposite. It introduces more requirements.
e.g. extensions aside, this is a valid AS2 document or AP object:
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": ["Activity", "Object"],
"summary": "Sally did something to a note",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Note",
"name": "A Note"
}
}
but because activitypub-mincore extends the requirement set to add a new requirement that type
cannot be an array, it makes it invalid in activitypub-mincore.
I think it is misleading to represent this as minimal or and especially an 'activitypub core'. Just give it a new name like 'monomorphism' and say it's 'activitypub inspired' :P
This will be somewhat rambling, as it touches on a lot of issues in ActivityPub, which will need to be fixed for it to become FriendPub.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.