Built and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun
License
MIT
•
Downloads198/wk
•
Published5 days ago (2.3.6)
Vocabularies library for Fedify
- @fedify/vocab
- default
- InteractionPolicy
Represents an interaction policy attached to a post, specifying who can like, reply to, announce, or quote it. Each sub-policy (InteractionRule) defines which actors receive automatic or manual approval.
See GoToSocial interaction controls for details.
Constructors
Constructs a new instance of InteractionPolicy with the given values.
Parameters
The values to initialize the instance with.
The options to use for initialization.
Static Properties
Static Methods
Converts a JSON-LD structure to an object of this type.
Properties
The sub-policy specifying who can announce (boost) the post.
When absent, implementations should assume that anyone can announce
(i.e., automaticApproval defaults to the public collection).
The sub-policy specifying who can like the post.
When absent, implementations should assume that anyone can like the post
(i.e., automaticApproval defaults to the public collection).
The sub-policy specifying who can quote the post.
When absent, implementations should assume that anyone can quote the post
(i.e., automaticApproval defaults to the public collection).
The sub-policy specifying who can reply to the post.
When absent, implementations should assume that anyone can reply
(i.e., automaticApproval defaults to the public collection).
Methods
Clones this instance, optionally updating it with the given values.
Converts this object to a JSON-LD structure.