mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 19:51:48 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
381b8394d9
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,8 @@
|
|||
# autenticación.
|
||||
class ActivityPub
|
||||
class FetchJob < ApplicationJob
|
||||
include Que::Unique
|
||||
|
||||
self.priority = 50
|
||||
|
||||
def perform(site:, object_id:)
|
||||
|
@ -32,7 +34,7 @@ class ActivityPub
|
|||
return if current_type == object.type
|
||||
|
||||
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
|
||||
ActivityPub.where(object_id: object.id).update_all(object_type: object.type)
|
||||
|
|
Loading…
Reference in a new issue