Username of user deleting post.
The ID of the post.
True on success.
Allows an admin to approve a post.
Username of user approving.
The ID of the post.
True on success.
Creates a post at a specified host.
Local user making the post.
The host server the post is made on.
The post being made.
The created post.
Deletes a post at a specified host.
User deleting the post.
The host server the post is on.
The id of the post on the federated network.
Gets all the posts in a community.
The username of the user getting the post.
The host from which to get the posts.
ID of the community to obtain the posts from.
All posts in the community.
Gets a post by its ID.
The username of the user getting the post.
The host from which to get the post.
The ID of the post to get.
The obtained Post
.
Fetches the unfiltered version of the posts for community admins. Unfiltered posts won't hide the contents of their title and body.
The community to fetch posts from.
Unfiltered posts.
Checks if the username belongs to an admin of the community the post was created on.
User to check.
Post to check.
True if the user is an admin of the post's community.
Sets the approved flag to false on a post.
The ID of the post.
True on success.
Updates a post by its ID.
The username of the user deleting the post.
The host on which to update the post.
The updated Post
.
Generated using TypeDoc
Allows an admin to delete a post. Also removes the reference to the post. for the author if they are a local user.