mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 15:06:22 +00:00
parent
bf75d50cc3
commit
d2d327dc84
3 changed files with 9 additions and 9 deletions
|
@ -8,12 +8,12 @@
|
|||
#
|
||||
# @see {https://www.w3.org/TR/activitypub/#client-to-server-interactions}
|
||||
class ActivityPub < ApplicationRecord
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
IGNORED_EVENTS = %i[remove]
|
||||
IGNORED_STATES = %i[removed]
|
||||
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
belongs_to :instance
|
||||
belongs_to :site
|
||||
belongs_to :object, polymorphic: true
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
# Mantiene la relación entre Site y Actor
|
||||
class ActorModeration < ApplicationRecord
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
IGNORED_EVENTS = %i[remove]
|
||||
IGNORED_STATES = %i[removed]
|
||||
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
belongs_to :site
|
||||
belongs_to :remote_flag, optional: true, class_name: 'ActivityPub::RemoteFlag'
|
||||
belongs_to :actor, class_name: 'ActivityPub::Actor'
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
# Mantiene el registro de relaciones entre sitios e instancias
|
||||
class InstanceModeration < ApplicationRecord
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
IGNORED_EVENTS = []
|
||||
IGNORED_STATES = []
|
||||
|
||||
include AASM
|
||||
include AasmEventsConcern
|
||||
|
||||
belongs_to :site
|
||||
belongs_to :instance, class_name: 'ActivityPub::Instance'
|
||||
|
||||
|
|
Loading…
Reference in a new issue