class OutboxActivityProcessor
- OutboxActivityProcessor
- Reference
- Object
Defined in:
services/outbox_activity_processor.crClass Method Summary
-
.process(account : Account, activity : ActivityPub::Activity, content_rules : ContentRules = ContentRules.new, deliver_task_class : Task::Deliver.class = Task::Deliver)
Processes an outbound activity that has already been created, validated, and saved.
Class Method Detail
def self.process(account : Account, activity : ActivityPub::Activity, content_rules : ContentRules = ContentRules.new, deliver_task_class : Task::Deliver.class = Task::Deliver)
#
Processes an outbound activity that has already been created, validated, and saved.
Processes the activity through content rules, handles activity-specific side-effects, 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