mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:26:23 +00:00
fix: quizás no hay actor aun (?)
This commit is contained in:
parent
e8ce721af0
commit
883da8d881
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue