class

Relationship::Social::Follow

Inherits Relationship < Ktistec::Model::Polymorphic < Ktistec::Model::Common < Ktistec::Model < Reference < Object

Class methods

followers_for(actor_iri : String, *, max_id = nil, min_id = nil, limit = 10)

Returns followers.

Returns relationships where the actor is being followed (to_iri).

Results are ordered by most recent first.

Source
followers_since(actor_iri : String, since : Time)

Returns count of followers.

Returns count of relationships where the actor is being followed (to_iri) created on or after the given timestamp.

Source
following_for(actor_iri : String, *, max_id = nil, min_id = nil, limit = 10)

Returns following.

Returns relationships where the actor is following others (from_iri).

Results are ordered by most recent first.

Source
following_since(actor_iri : String, since : Time)

Returns count of following.

Returns count of relationships where the actor is following others (from_iri) created on or after the given timestamp.

Source

Instance methods

_association_actor
Source
_association_object
Source
_belongs_to_setter_for_actor(actor_ : ActivityPub::Actor, update_associations = true) : ActivityPub::Actor
Source
_belongs_to_setter_for_object(object_ : ActivityPub::Actor, update_associations = true) : ActivityPub::Actor
Source
accepted?

Returns true if the follow relationship has been accepted.

Source
activity?

Returns the associated follow activity.

Returns the most recent associated follow activity if there is more than one.

Ignores follow activities that have been undone.

Source
actor(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor
Source
actor?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor | Nil
Source
object(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor
Source
object?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor | Nil
Source
pending?

Returns true if the follow relationship is pending.

A follow is pending if it has not been accepted or rejected (confirmed = false).

Source
rejected?

Returns true if the follow relationship has been rejected.

Source
response?

Returns the response to the associated follow activities.

Returns the most recent accept or reject of any follow activity from the actor to the object.

Ignores follow activities that have been undone.

Source