From: Tobias Diekershoff Date: Sun, 3 Nov 2019 18:57:32 +0000 (+0100) Subject: move link generation into the loop X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7ecc62cc8e24b300ce7ab136b69424dc3cf7e95;p=friendica.git move link generation into the loop --- diff --git a/src/Content/Item.php b/src/Content/Item.php index f086fbe19c..ea1baef180 100644 --- a/src/Content/Item.php +++ b/src/Content/Item.php @@ -42,13 +42,12 @@ final class Item $folders = []; $first = true; - if (!empty($item['author-link'])) { - $url = $item['author-link'] . "?category=" . rawurlencode($savedFolderName); - } else { - $url = '#'; - } - foreach (FileTag::fileToArray($item['file'] ?? '', 'category') as $savedFolderName) { + if (!empty($item['author-link'])) { + $url = $item['author-link'] . "?category=" . rawurlencode($savedFolderName); + } else { + $url = '#'; + } $categories[] = [ 'name' => $savedFolderName, 'url' => $url,