[PLUGIN][ActivityPub] Support tags in notes

This commit is contained in:
2021-12-24 21:02:02 +00:00
parent 36483a6ecd
commit 9d0b39e680
4 changed files with 31 additions and 16 deletions

View File

@@ -324,6 +324,11 @@ class Note extends Entity
});
}
public function getTags(): array
{
return Cache::get('note-tags-' . $this->getId(), fn () => DB::findBy('note_tag', ['note_id' => $this->getId()]));
}
/**
* Returns this Note's reply_to/parent.
*