5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 05:14:16 +00:00

fix: el reporte remoto es opcional

This commit is contained in:
f 2024-03-06 15:36:00 -03:00
parent ea34b2c676
commit 38ba8795de
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ class ActivityPub < ApplicationRecord
belongs_to :site
belongs_to :object, polymorphic: true
belongs_to :actor
belongs_to :remote_flag, class_name: 'ActivityPub::RemoteFlag'
belongs_to :remote_flag, optional: true, class_name: 'ActivityPub::RemoteFlag'
has_many :activities
validates :site_id, presence: true