[PLUGIN][ActivityPub][Notification] Fix some issues with targetting

This commit is contained in:
2022-03-23 13:18:44 +00:00
parent e63c310d70
commit 56b8710b26
5 changed files with 23 additions and 13 deletions

View File

@@ -115,6 +115,16 @@ class ActivitypubObject extends Entity
return DB::findOneBy($this->getObjectType(), ['id' => $this->getObjectId()]);
}
public function getAttentionTargetIds(): array
{
return $this->getObject()->getAttentionTargetIds();
}
public function getAttentionTargets(): array
{
return $this->getObject()->getAttentionTargets();
}
public static function schemaDef(): array
{
return [