5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 05:16:21 +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} # @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

View file

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

View file

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