mirror of
https://github.com/friendica/friendica
synced 2025-04-30 21:44:22 +02:00
Store and display the subscribed tags
This commit is contained in:
parent
b218a7f218
commit
f842e7b813
4 changed files with 28 additions and 16 deletions
|
@ -828,12 +828,13 @@ class Tag
|
|||
public static function getUIDListByURIId(int $uriId): array
|
||||
{
|
||||
$uids = [];
|
||||
$tags = self::getByURIId($uriId, [self::HASHTAG]);
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
$uids = array_merge($uids, self::getUIDListByTag(self::TAG_CHARACTER[self::HASHTAG] . $tag['name']));
|
||||
foreach (self::getByURIId($uriId, [self::HASHTAG]) as $tag) {
|
||||
foreach (self::getUIDListByTag(self::TAG_CHARACTER[self::HASHTAG] . $tag['name']) as $uid) {
|
||||
$uids[$uid][] = $tag['name'];
|
||||
}
|
||||
}
|
||||
|
||||
return array_unique($uids);
|
||||
return $uids;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue