struct

Serializers::Post

Inherits Struct < Value < Object

A post view-object.

Constructors

from(object : ActivityPub::Object, owner_iri : String | Nil) : Post

Returns a Post view-object.

Facts about the post are as seen by owner_iri.

Source
new(iri : String, type : String, name : String | Nil, summary : String | Nil, content : String | Nil, to : Array(String), cc : Array(String), audience : Array(String), attachments : Array(Attachment), published : Time | Nil, in_reply_to : String | Nil, thread : String | Nil, quote : String | Nil, language : String | Nil, sensitive : Bool, hashtags : Array(Tag), mentions : Array(Tag), labels : Array(String), author : String | Nil, deleted : Bool, blocked : Bool, timeline : String | Nil, poll : Poll | Nil)
Source

Instance methods

attachments
Source
audience
Source
author
Source
blocked
Source
content
Source
deleted
Source
hashtags
Source
in_reply_to
Source
labels
Source
language
Source
mentions
Source
name
Source
poll
Source
published
Source
quote
Source
sensitive
Source
summary
Source
thread
Source
timeline

How the post reached the feed's owner's timeline: "create", "announce", or nil if it is not in their timeline.

Source
type
Source

Nested types