module

Rules::Trigger

The trigger.

Maps a changed activity to the object whose materialized views must be re-evaluated and drives the maintainer.

Constants

DEFAULT_NOTIFIER = ->(subject : String) do Ktistec::Topic {subject}.notify_subscribers nil end

Class methods

notifier
Source
notifier=(notifier : Proc(String, Nil))
Source

Instance methods

reconcile_for_activity(activity : ActivityPub::Activity) : Nil

Re-evaluates the materialized views for the object an activity concerns.

Source
reconcile_for_actor(actor : ActivityPub::Actor) : Nil

Re-evaluates the materialized views affected by a change to an actor's state.

Source
reconcile_for_hashtag(owner_iri : String, name : String) : Nil

Re-evaluates the hashtag-follow notification for an (owner, name) key.

Source
reconcile_for_hashtag_follow(follow : Relationship::Content::Follow::Hashtag) : Nil

Re-evaluates the hashtag-follow notification for an (owner, name) key.

Source
reconcile_for_mention(owner_iri : String, href : String) : Nil

Re-evaluates the mention-follow notification for an (owner, href) key.

Source
reconcile_for_mention_follow(follow : Relationship::Content::Follow::Mention) : Nil

Re-evaluates the mention-follow notification for an (owner, href) key.

Source
reconcile_for_object(object : ActivityPub::Object) : Nil

Re-evaluates the feeds a changed object may belong to.

An object write can change content, addressing, or publication, any of which can move the object into or out of a feed, so judging is not restricted to arrival.

Only the feed views are reconciled: an object write moves only the views whose membership derives from the object's own state.

Source
reconcile_for_tag(tag : Tag::Hashtag) : Nil

Re-evaluates the materialized views affected by a hashtag being added to or removed from an object.

A Tag::Hashtag create/destroy changes PublicTagged membership without changing PublicTimeline, so it must drive its own reconcile of the tagged object.

Source
reconcile_for_thread(owner_iri : String, thread : String) : Nil

Re-evaluates the thread-follow notification for an (owner, thread) key.

Source
reconcile_for_thread_follow(follow : Relationship::Content::Follow::Thread) : Nil

Re-evaluates the thread-follow notification for an (owner, thread) key.

Source