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

fix: actualizar al estado remoto

This commit is contained in:
f 2024-03-06 15:41:46 -03:00
parent 38ba8795de
commit b334d49654
No known key found for this signature in database

View file

@ -53,7 +53,8 @@ module Api
instance.present?
object.present?
activity.present?
activity_pub.approve! if activity_pub.may_approve?
activity_pub.update(aasm_state: 'approved')
activity.update_activity_pub_state!
end
head :accepted
@ -69,7 +70,7 @@ module Api
instance.present?
object.present?
activity.present?
activity_pub.reject! if activity_pub.may_reject?
activity_pub.update(aasm_state: 'rejected')
end
head :accepted