5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 20:06:22 +00:00

fixup! feat: modificar el estado de moderación en masa #15328 #15327

This commit is contained in:
f 2024-03-12 14:24:38 -03:00
parent bf75d50cc3
commit d2d327dc84
No known key found for this signature in database
3 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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'

View file

@ -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'