Community post

On this page

Overview 

Below is a list of all the available drops on the community post object


Name Description
post.id ID of the post
post.content The content of the post
post.locale Locale of the post
post.updated_at When the post was last updated
post.created_at When the post was created
post.link Canonical URI for post
post.author Profile of the author
post.deleted_at When post was deleted
post.children Posts made in response to this post
post.children_count Number of posts made in response to this post
post.posts Alias for children, to provide symmetry with groups
posts.post_count Alias for children_count, to provide symmetry with groups
post.has_right.:right If the current account has the asked for right
post.active? If this post is the main model for the page?
post.has_active_child? Is any reply to this post active? (see note)
post.has_active_parent? Is the post this is a reply to or the group it belongs to active?
post.has_active_ancestor? Is any ancestor group or post of thie post active?
post.has_active_decendant? Is any descendant post of this post active?
post.activ_or_ancestor? Is this or any descendant of this post active?
Same as post.active? or post.has_active_descentant?

Plus: also all attached file properties

Deleted posts will still be listed because there can be replies to the post that arent' deleted. The post is kept with content cleared allow a correct hierarchy to be shown

post.has_active_child? works slightly different for posts and groups. Groups consider any post in the group to be a child while post only consider direct replies.

Updated: 2020-11-17