social.colibri.beta.community.applyLabel
Applies a label to a record in one of the community's spaces. This is how content is hidden, marked as a spoiler, or has its link previews suppressed. The record itself is untouched, since it lives in its author's own repo, but a `hidden` label stops this AppView serving the record: it is withheld from reads and from the events socket, and replies to it see a deletedMessageView in its place. Moderators holding `label.apply` and the record's own author still see it.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.beta.colibri.social |
| Indexed |
Procedure
procedure · POSTInput
application/jsonreason
stringHuman-readable reason for the label.
maxLength: 512
scope
arrayNarrows the label to specific URIs inside the subject record. Absent means the whole record.
A URI within the subject record.
The space the labelled record lives in.
The record to label.
The label value. `hidden` withholds the record from reads. `spoiler` and `embeds-suppressed` are display hints.
maxLength: 128knownValues: hidden | spoiler | embeds-suppressed
Output
application/jsonThe applied label.
Errors
AuthRequired
The request is missing, malformed, or unverifiable service auth.
Forbidden
The caller lacks the label.apply permission.
CommunityNotFound
No community exists at the given DID.
SpaceNotFound
No space exists at the given reference.
InvalidRequest
The scope or val is not valid for the subject record.
CredentialsUnavailable
The AppView cannot act as the community because its stored credentials are missing or unusable.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
social.colibri.beta.label
recordA label applied to a record in the same space. Permissioned content cannot be taken down by anyone but its author, so moderation of content is advisory: a reader honours the labels published by the labelers its community names.
-
fyi.opensocial.applyLabel
procedureWrite a label record into the subject's space. Requires label, or takedown for !hide and !takedown.
-
Retracts a label by writing a negating one. The original label record is left in place.
-
A label an admin applies. uri targets a record (every version, or one with cid); cid alone targets a blob; subject targets an account.
-
app.userinput.hide
recordHides a discussion or reply within a space. Only honored when authored by the space owner or a moderator. Lives in the moderator's repo.