Creates and persists a new post, initializing the owner UserRole.
the optional ID of an event to associate with.
Deletes the given post
Finds the latest announcement
among "eventId"
Finds one post
among "id name userId eventId specialPostType allowDrafts"
Finds all posts from a feed (specified through options)
among "specialPostType allowHidden allowDrafts eventId entryId userId"
Finds the URL of the first picture in the body, if any. Quick and not-completely-reliable implementation.
Any model with a body
Indicates if a date is already past
Updates the comment count on the given node and saves it.
Tells whether a model has been edited > 1 hour after its creation
Any model with timestamps
Generated using TypeDoc
Attach existing post on the event from a user the given entry