5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-09 18:16:55 +00:00

Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl

This commit is contained in:
Sutty 2024-03-17 15:07:27 +00:00
commit 381b8394d9

View file

@ -9,6 +9,8 @@
# autenticación. # autenticación.
class ActivityPub class ActivityPub
class FetchJob < ApplicationJob class FetchJob < ApplicationJob
include Que::Unique
self.priority = 50 self.priority = 50
def perform(site:, object_id:) def perform(site:, object_id:)
@ -32,7 +34,7 @@ class ActivityPub
return if current_type == object.type return if current_type == object.type
object = ::ActivityPub::Object.find(object_id) object = ::ActivityPub::Object.find(object_id)
object.actor.save if object.actor_type? object.actor&.save if object.actor_type?
# Arreglar las relaciones con actividades también # Arreglar las relaciones con actividades también
ActivityPub.where(object_id: object.id).update_all(object_type: object.type) ActivityPub.where(object_id: object.id).update_all(object_type: object.type)