# frozen_string_literal: true # Almacena objetos de ActivityPub, como Note, Article, etc. class ActivityPub class Object < ApplicationRecord include ActivityPub::Concerns::JsonLdConcern has_many :activity_pubs, as: :object # Encontrar le Actor por su relaciĆ³n con el objeto # # @return [ActivityPub::Actor,nil] def actor ActivityPub::Actor.find_by(uri: content['actor']) end end end