A post or a comment on a wall.

id
integer (positive)

Unique (server-wide) identifier of this post.

owner_id
integer

Identifier of the wall owner, either user ID or minus group ID.

from_id
integer (positive)

Identifier of the user who made this post.

ap_id
string

Globally-unique ActivityPub identifier for this post. Use this to match posts across servers.

url
string

The URL of the web page representing this post. For posts made by remote users, points to their home server.

date
integer

The timestamp when this post was published, as unixtime.

text
string

The text of the post as HTML. More about text formatting.

privacy
enum

If this post isn’t publicly visible, the visibility setting specified by the author.

Possible values: followers, followers_and_mentioned, friends.

likes
object

Information about likes of this post.

count
integer (non-negative)

How many users liked this post.

can_like
boolean

Whether the current user can like this post.

user_likes
boolean

Whether the current user likes this post.

reposts
object

Information about reposts of this post.

count
integer (non-negative)

How many reposts of this post were made.

can_repost
boolean

Whether the current user can repost this post.

user_reposted
boolean

Whether the current user has reposted this post.

post_source
object

Information about how this post was created. TODO

attachments
array of attachments

Media attachments added to this post.

content_warning
string

The content warning text, if any. If this field is present, hide the post content, replacing it with this text, and only reveal it after an extra click or tap.

can_delete
boolean

Whether the current user can delete this post.

can_edit
boolean

Whether the current user can edit this post.

mentioned_users
array of integers

An array of user IDs corresponding to users mentioned in this post.

Top-level posts only

comments
object

Information about comments on this post. Only returned for top-level posts.

count
integer (non-negative)

The total number of comments.

can_post
boolean

Whether the current user can comment on this post.

repost_history
array of wall posts

If this is a repost, the array of reposted posts. Contains more than one element if the reposted post is itself a repost.

is_mastodon_style_repost
boolean

If this is a repost, whether this is a Mastodon-style repost (Announce activity). Mastodon-style reposts work like retweets on Twitter – they aren’t “real” posts, they don’t have their own comment thread and can’t be interacted with. If this is true, you should forward all user interactions, like comments or likes, to the reposted post (repost_history[0]). It’s also recommended display such posts with some indication in the UI that the user will interact with the original post.

can_pin
boolean

Whether the current user can pin this post to their wall.

is_pinned
boolean

Whether this post is pinned on its owner’s wall.

Comments only

parents_stack
array of integers

Array of identifiers of parent comments.

reply_to_comment
integer (positive)

Identifier of the comment this is in reply to, if applicable.

reply_to_user
integer (positive)

Identifier of the user this is in reply to, if applicable.

thread
object

An object describing the reply thread of this comment. Only returned when view_type is threaded or two_level.

count
integer (non-negative)

The total number of comments in this branch.

reply_count
integer (non-negative)

The total number of replies to this comment.

items
array of wall posts

The replies to this comment.