mirror of
https://github.com/friendica/friendica
synced 2024-11-19 23:03:41 +00:00
Merge pull request #11578 from annando/issue-11561
Issue 11561: Don't mark photo links as invalid
This commit is contained in:
commit
9160fde8ca
1 changed files with 3 additions and 5 deletions
|
@ -1257,14 +1257,12 @@ function photos_content(App $a)
|
||||||
$tags = null;
|
$tags = null;
|
||||||
|
|
||||||
if (!empty($link_item['id'])) {
|
if (!empty($link_item['id'])) {
|
||||||
$tag_text = Tag::getCSVByURIId($link_item['uri-id']);
|
|
||||||
$arr = explode(',', $tag_text);
|
|
||||||
// parse tags and add links
|
// parse tags and add links
|
||||||
$tag_arr = [];
|
$tag_arr = [];
|
||||||
foreach ($arr as $tag) {
|
foreach (Tag::getByURIId($link_item['uri-id']) as $tag) {
|
||||||
$tag_arr[] = [
|
$tag_arr[] = [
|
||||||
'name' => BBCode::convert($tag),
|
'name' => $tag['name'],
|
||||||
'removeurl' => '/tagrm/' . $link_item['id'] . '/' . bin2hex($tag)
|
'removeurl' => '/tagrm/' . $link_item['id'] . '/' . bin2hex($tag['name'])
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
$tags = ['title' => DI::l10n()->t('Tags: '), 'tags' => $tag_arr];
|
$tags = ['title' => DI::l10n()->t('Tags: '), 'tags' => $tag_arr];
|
||||||
|
|
Loading…
Reference in a new issue