mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Only fetch category when it exists
This commit is contained in:
parent
fb3353d4bd
commit
1f43332a1d
2 changed files with 9 additions and 0 deletions
|
@ -93,6 +93,10 @@ class Item
|
|||
|
||||
$uid = $item['uid'] ?: $uid;
|
||||
|
||||
if (!Post\Category::existsForURIId($item['uri-id'], $uid)) {
|
||||
return [$categories, $folders];
|
||||
}
|
||||
|
||||
foreach (Post\Category::getArrayByURIId($item['uri-id'], $uid, Post\Category::CATEGORY) as $savedFolderName) {
|
||||
if (!empty($item['author-link'])) {
|
||||
$url = $item['author-link'] . "?category=" . rawurlencode($savedFolderName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue