5
0
Fork 0
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:
f 2024-03-05 14:19:33 -03:00
parent ff428c6527
commit 054dbc31e0
No known key found for this signature in database

View file

@ -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