[PLUGIN][Pinboard] Implement tag handling
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user