mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
the "term" field now is called "name", workaround removed
This commit is contained in:
parent
74081a71ff
commit
729c6b67aa
3 changed files with 3 additions and 14 deletions
|
@ -320,18 +320,7 @@ class Tag
|
|||
public static function getByURIId(int $uri_id, array $type = [self::HASHTAG, self::MENTION, self::IMPLICIT_MENTION, self::EXCLUSIVE_MENTION])
|
||||
{
|
||||
$condition = ['uri-id' => $uri_id, 'type' => $type];
|
||||
$tags = DBA::select('tag-view', ['type', 'name', 'url'], $condition);
|
||||
if (!DBA::isResult($tags)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$tag_list = [];
|
||||
while ($tag = DBA::fetch($tags)) {
|
||||
$tag['term'] = $tag['name']; /// @todo Remove this line when all occurrences of "term" had been replaced with "name"
|
||||
$tag_list[] = $tag;
|
||||
}
|
||||
|
||||
return $tag_list;
|
||||
return DBA::selectToArray('tag-view', ['type', 'name', 'url'], $condition);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue