mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 01:16:21 +00:00
feat: auto-aprobar solicitudes de seguimiento
This commit is contained in:
parent
5969662a7d
commit
96d70100e4
1 changed files with 10 additions and 1 deletions
|
@ -4,8 +4,17 @@
|
|||
#
|
||||
# Una actividad de seguimiento se refiere siempre a une actore (el
|
||||
# sitio) y proviene de otre actore.
|
||||
#
|
||||
# Por ahora las solicitudes de seguimiento se auto-aprueban.
|
||||
class ActivityPub
|
||||
class Activity
|
||||
class Follow < ActivityPub::Activity; end
|
||||
class Follow < ActivityPub::Activity
|
||||
# Auto-aprobar la solicitud de seguimiento
|
||||
def update_activity_pub_state!
|
||||
activity_pub.approve!
|
||||
rescue Exception => e
|
||||
ExceptionNotifier.notify_exception(e, { site: activity_pub.site.name, activity: self.id })
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue