5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 11:06:23 +00:00

fix: siempre relacionar la instancia con el sitio #15563

This commit is contained in:
f 2024-03-13 17:52:45 -03:00
parent 1b9e039fda
commit b6ed91df11
No known key found for this signature in database

View file

@ -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)