From: Michael Date: Sun, 29 May 2022 19:10:00 +0000 (+0000) Subject: Issue 11561: Don't mark photo links as invalid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aabb56c70de05f8fe7687c5611a29f4aec60cd07;p=friendica.git Issue 11561: Don't mark photo links as invalid --- diff --git a/mod/photos.php b/mod/photos.php index 1374b85432..88cd8782de 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1257,14 +1257,12 @@ function photos_content(App $a) $tags = null; if (!empty($link_item['id'])) { - $tag_text = Tag::getCSVByURIId($link_item['uri-id']); - $arr = explode(',', $tag_text); // parse tags and add links $tag_arr = []; - foreach ($arr as $tag) { + foreach (Tag::getByURIId($link_item['uri-id']) as $tag) { $tag_arr[] = [ - 'name' => BBCode::convert($tag), - 'removeurl' => '/tagrm/' . $link_item['id'] . '/' . bin2hex($tag) + 'name' => $tag['name'], + 'removeurl' => '/tagrm/' . $link_item['id'] . '/' . bin2hex($tag['name']) ]; } $tags = ['title' => DI::l10n()->t('Tags: '), 'tags' => $tag_arr];