https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17061b2
)
move link generation into the loop
author
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sun, 3 Nov 2019 18:57:32 +0000
(19:57 +0100)
committer
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sun, 3 Nov 2019 18:57:32 +0000
(19:57 +0100)
src/Content/Item.php
patch
|
blob
|
history
diff --git
a/src/Content/Item.php
b/src/Content/Item.php
index
f086fbe
..
ea1baef
100644
(file)
--- 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,