mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:46:23 +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}
|
# @see {https://www.w3.org/TR/activitypub/#client-to-server-interactions}
|
||||||
class ActivityPub < ApplicationRecord
|
class ActivityPub < ApplicationRecord
|
||||||
include AASM
|
|
||||||
include AasmEventsConcern
|
|
||||||
|
|
||||||
IGNORED_EVENTS = %i[remove]
|
IGNORED_EVENTS = %i[remove]
|
||||||
IGNORED_STATES = %i[removed]
|
IGNORED_STATES = %i[removed]
|
||||||
|
|
||||||
|
include AASM
|
||||||
|
include AasmEventsConcern
|
||||||
|
|
||||||
belongs_to :instance
|
belongs_to :instance
|
||||||
belongs_to :site
|
belongs_to :site
|
||||||
belongs_to :object, polymorphic: true
|
belongs_to :object, polymorphic: true
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
# Mantiene la relación entre Site y Actor
|
# Mantiene la relación entre Site y Actor
|
||||||
class ActorModeration < ApplicationRecord
|
class ActorModeration < ApplicationRecord
|
||||||
include AASM
|
|
||||||
include AasmEventsConcern
|
|
||||||
|
|
||||||
IGNORED_EVENTS = %i[remove]
|
IGNORED_EVENTS = %i[remove]
|
||||||
IGNORED_STATES = %i[removed]
|
IGNORED_STATES = %i[removed]
|
||||||
|
|
||||||
|
include AASM
|
||||||
|
include AasmEventsConcern
|
||||||
|
|
||||||
belongs_to :site
|
belongs_to :site
|
||||||
belongs_to :remote_flag, optional: true, class_name: 'ActivityPub::RemoteFlag'
|
belongs_to :remote_flag, optional: true, class_name: 'ActivityPub::RemoteFlag'
|
||||||
belongs_to :actor, class_name: 'ActivityPub::Actor'
|
belongs_to :actor, class_name: 'ActivityPub::Actor'
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
# Mantiene el registro de relaciones entre sitios e instancias
|
# Mantiene el registro de relaciones entre sitios e instancias
|
||||||
class InstanceModeration < ApplicationRecord
|
class InstanceModeration < ApplicationRecord
|
||||||
include AASM
|
|
||||||
include AasmEventsConcern
|
|
||||||
|
|
||||||
IGNORED_EVENTS = []
|
IGNORED_EVENTS = []
|
||||||
IGNORED_STATES = []
|
IGNORED_STATES = []
|
||||||
|
|
||||||
|
include AASM
|
||||||
|
include AasmEventsConcern
|
||||||
|
|
||||||
belongs_to :site
|
belongs_to :site
|
||||||
belongs_to :instance, class_name: 'ActivityPub::Instance'
|
belongs_to :instance, class_name: 'ActivityPub::Instance'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue