[TOOLS][DOC] Add missing documentation, as flagged by doc-check

This commit is contained in:
2021-12-21 12:24:23 +00:00
parent da8c41e094
commit d6d5926b6e
4 changed files with 21 additions and 2 deletions

View File

@@ -346,6 +346,11 @@ class Note extends Entity
));
}
/**
* Find all mentioned actors in this note
*
* @TODO: Seems rather inneficient to be rendering just for this
*/
public function getNotificationTargets(array $ids_already_known = []): array
{
$rendered = null;
@@ -354,8 +359,8 @@ class Note extends Entity
$this->getContentType(),
&$rendered,
$this->getActor(),
is_null($this->getLanguageId()) ? null : Language::getById($this->getLanguageId())->getLocale(),
&$mentions]);
\is_null($this->getLanguageId()) ? null : Language::getById($this->getLanguageId())->getLocale(),
&$mentions, ]);
$mentioned = [];
foreach ($mentions as $mention) {
foreach ($mention['mentioned'] as $m) {