2024-02-20 17:44:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# = Actor =
|
|
|
|
#
|
|
|
|
# Actor es la entidad que realiza acciones en ActivityPub
|
|
|
|
#
|
|
|
|
# @todo Obtener el perfil dinámicamente
|
2024-02-21 15:46:38 +00:00
|
|
|
class ActivityPub
|
|
|
|
class Actor < ApplicationRecord
|
|
|
|
include ActivityPub::Concerns::JsonLdConcern
|
2024-02-20 17:44:52 +00:00
|
|
|
|
2024-02-21 15:46:38 +00:00
|
|
|
belongs_to :instance
|
2024-02-28 20:34:34 +00:00
|
|
|
has_many :actor_moderation
|
2024-02-21 15:46:38 +00:00
|
|
|
has_many :activity_pubs, as: :object
|
2024-02-24 16:04:52 +00:00
|
|
|
has_many :activities
|
2024-02-21 15:46:38 +00:00
|
|
|
end
|
2024-02-20 17:44:52 +00:00
|
|
|
end
|