5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:36:21 +00:00

fix: se pueden rechazar comentarios luego de aprobarlos #15600

This commit is contained in:
f 2024-03-20 17:49:09 -03:00
parent 28053b2a56
commit 0a1b86c111
No known key found for this signature in database

View file

@ -128,7 +128,7 @@ class ActivityPub < ApplicationRecord
# La actividad fue rechazada # La actividad fue rechazada
event :reject do event :reject do
transitions from: %i[paused], to: :rejected transitions from: %i[paused approved], to: :rejected
after do after do
ActivityPub::InboxJob.perform_later(site: site, activity: activities.first.uri, action: :reject) ActivityPub::InboxJob.perform_later(site: site, activity: activities.first.uri, action: :reject)