class

OutboxActivityProcessor

Inherits Reference < Object

Class methods

process(account : Account, activity : ActivityPub::Activity, deliver_task_class : Task::Deliver.class = Task::Deliver)

Processes an outbound activity that has already been created, validated, and saved.

Records the activity in the actor's outbox, handles activity-specific side-effects, re-evaluates the materialized views, and schedules delivery task.

Preconditions:

  • activity must be saved
  • activity must be local
  • activity actor must equal account actor
  • For accept/reject: The follow relationship must exist
  • For undo: The activity being undone must exist and be owned by the same actor
  • For delete: The object/actor being deleted must be local and owned by the account
Source