mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 01:06:21 +00:00
fix: aprobar las peticiones de seguimiento automáticamente
This commit is contained in:
parent
8ff5626e99
commit
f6b2895b58
1 changed files with 1 additions and 3 deletions
|
@ -11,9 +11,7 @@ class ActivityPub
|
||||||
class Follow < ActivityPub::Activity
|
class Follow < ActivityPub::Activity
|
||||||
# Auto-aprobar la solicitud de seguimiento
|
# Auto-aprobar la solicitud de seguimiento
|
||||||
def update_activity_pub_state!
|
def update_activity_pub_state!
|
||||||
activity_pub.approve!
|
activity_pub.approve! if activity_pub.may_approve?
|
||||||
rescue Exception => e
|
|
||||||
ExceptionNotifier.notify_exception(e, data: { site: activity_pub.site.name, activity: self.id })
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue