mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 22:36:21 +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?
|
instance.present?
|
||||||
object.present?
|
object.present?
|
||||||
activity.present?
|
activity.present?
|
||||||
activity_pub.approve!
|
activity_pub.approve! if activity_pub.may_approve?
|
||||||
end
|
end
|
||||||
|
|
||||||
head :accepted
|
head :accepted
|
||||||
|
@ -69,7 +69,7 @@ module Api
|
||||||
instance.present?
|
instance.present?
|
||||||
object.present?
|
object.present?
|
||||||
activity.present?
|
activity.present?
|
||||||
activity_pub.reject!
|
activity_pub.reject! if activity_pub.may_reject?
|
||||||
end
|
end
|
||||||
|
|
||||||
head :accepted
|
head :accepted
|
||||||
|
|
Loading…
Reference in a new issue