mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
use tag display name property
This commit is contained in:
parent
a1df250d27
commit
bf8c60d6ee
1 changed files with 2 additions and 4 deletions
|
@ -82,13 +82,11 @@ class MailActions extends Actions
|
|||
{
|
||||
$tags = LBRY::listTags($vars['token']);
|
||||
$tagMetadata = [];
|
||||
$specialDisplayNames = [
|
||||
'ios' => 'iOS'
|
||||
];
|
||||
|
||||
foreach($tags as $tag) {
|
||||
if ($tag['is_user_addable']) {
|
||||
$tagMetadata[$tag['name']] = [
|
||||
'label' => $specialDisplayNames[$tag['name']] ?? ucwords(str_replace(['-', '_'], ' ', $tag['name'])),
|
||||
'label' => $tag['display_name'],
|
||||
'description' => $tag['description']
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue