5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 22:36:21 +00:00

fix: indexar por el tipo actual

This commit is contained in:
f 2024-03-01 16:47:23 -03:00
parent 4bef309621
commit 2e1087107a
No known key found for this signature in database

View file

@ -131,7 +131,7 @@ module Api
#
# @return [ActivityPub]
def activity_pub
@activity_pub ||= site.activity_pubs.find_or_create_by!(site: site, instance: instance, object: object)
@activity_pub ||= site.activity_pubs.find_or_create_by!(site: site, instance: instance, object_id: object.id, object_type: object.type)
end
# Crea la actividad y la vincula con el estado