mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 22:56:22 +00:00
fix: actualizar al estado remoto
This commit is contained in:
parent
38ba8795de
commit
b334d49654
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue