MightyNetwork::DB::Note
Disclaimer: the objects that are mentionned here are objects as in Object-oriented programming, not as ActivityPub objects.
Model for notes.
MightyNetwork::DB::Note inherits attributes from MightyNetwork::DB and adds the following attributes.
my $id = $object->id;
$object->id(3);
my $actor = $object->actor;
$object->actor(3);
my $xtype = $object->xtype;
$object->xtype(3);
my $content = $object->content;
$object->content(3);
my $xto = $object->xto;
$object->xto(3);
my $cc = $object->cc;
$object->cc(3);
my $attributed_to = $object->attributed_to;
$object->attributed_to(3);
my $published = $object->published;
$object->published(3);
my $actor_object = $object->actor_object;
$object->actor_object(3);
MightyNetwork::DB::Note inherits methods from MightyNetwork::DB and adds the following methods.
Returns a Mojo::Collection of notes belonging to an actor.
The argument $actor
must be a MightyNetwork::DB::ActivityPub::Actor object.
my $actor = MightyNetwork::DB::ActivityPub::Actor->new(app => $c->app);
$c->find_actor_notes($actor);
MightyNetwork::DB::Note also modifies the following methods.
It adds the actor_object
attribute to the list of attributes to delete from the JSON representation of the object.
my $json = $object->to_json('foo', 'bar');
See MightyNetwork::DB#to_json-to_delete for the original method.
MightyNetwork::DB, MightyNetwork::DB::ActivityPub::Actor, Mojo::Collection, Mojo::Base