[feature] Forward-compatibility with Approval objects

This commit is contained in:
tobi 2025-02-19 17:01:53 +01:00
commit 1d831b7a3b
5 changed files with 449 additions and 123 deletions

View file

@ -97,6 +97,11 @@ const (
// Not in the AS spec, just used internally to indicate
// that we don't *yet* know what type of Object something is.
ObjectUnknown = "Unknown"
// Extensions and unofficial additions.
ObjectLikeApproval = "LikeApproval"
ObjectReplyApproval = "ReplyApproval"
ObjectAnnounceApproval = "AnnounceApproval"
)
// isActivity returns whether AS type name is of an Activity (NOT IntransitiveActivity).