[PLUGIN][Pinboard] Implement tag handling

This commit is contained in:
2022-04-01 00:16:04 +01:00
parent ca9945a4be
commit 74ffd261b8
4 changed files with 128 additions and 44 deletions

View File

@@ -139,6 +139,8 @@ class Pin extends Entity
// @codeCoverageIgnoreEnd
// }}} Autocode
public const note_type = 'page';
public static function cacheKeys(int|LocalUser|Actor $user): array
{
$id = \is_int($user) ? $user : $user->getId();
@@ -157,7 +159,7 @@ class Pin extends Entity
*/
public function getTags(): array
{
return [];
return Note::getById($this->getNoteId())->getTags();
}
public static function schemaDef(): array