mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 16:16:22 +00:00
fix: siempre relacionar la instancia con el sitio #15563
This commit is contained in:
parent
1b9e039fda
commit
b6ed91df11
1 changed files with 2 additions and 2 deletions
|
@ -162,11 +162,11 @@ module Api
|
|||
unless a.instance
|
||||
a.instance = ::ActivityPub::Instance.find_or_create_by(hostname: URI.parse(a.uri).hostname)
|
||||
|
||||
site.instance_moderations.find_or_create_by(instance: a.instance)
|
||||
|
||||
::ActivityPub::InstanceFetchJob.perform_later(site: site, instance: a.instance)
|
||||
end
|
||||
|
||||
site.instance_moderations.find_or_create_by(instance: a.instance)
|
||||
|
||||
a.save!
|
||||
|
||||
site.actor_moderations.find_or_create_by(actor: a)
|
||||
|
|
Loading…
Reference in a new issue