mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 05:36:22 +00:00
fix: indexar por el tipo actual
This commit is contained in:
parent
4bef309621
commit
2e1087107a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue