mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 11:16:22 +00:00
fix: no fallar si la actividad ya había cambiado de estado
This commit is contained in:
parent
ff428c6527
commit
054dbc31e0
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ module Api
|
|||
instance.present?
|
||||
object.present?
|
||||
activity.present?
|
||||
activity_pub.approve!
|
||||
activity_pub.approve! if activity_pub.may_approve?
|
||||
end
|
||||
|
||||
head :accepted
|
||||
|
@ -69,7 +69,7 @@ module Api
|
|||
instance.present?
|
||||
object.present?
|
||||
activity.present?
|
||||
activity_pub.reject!
|
||||
activity_pub.reject! if activity_pub.may_reject?
|
||||
end
|
||||
|
||||
head :accepted
|
||||
|
|
Loading…
Reference in a new issue