forked from GNUsocial/gnu-social
Bookmarks more robust to missing profiles
This commit is contained in:
parent
f9dc2fc0ab
commit
bf39c95795
@ -554,6 +554,7 @@ class BookmarkPlugin extends MicroAppPlugin
|
|||||||
|
|
||||||
foreach ($replies as $reply) {
|
foreach ($replies as $reply) {
|
||||||
$other = Profile::staticGet('id', $reply);
|
$other = Profile::staticGet('id', $reply);
|
||||||
|
if (!empty($other)) {
|
||||||
$out->elementStart('li');
|
$out->elementStart('li');
|
||||||
$out->element('a', array('rel' => 'tag',
|
$out->element('a', array('rel' => 'tag',
|
||||||
'href' => $other->profileurl,
|
'href' => $other->profileurl,
|
||||||
@ -562,6 +563,7 @@ class BookmarkPlugin extends MicroAppPlugin
|
|||||||
$out->elementEnd('li');
|
$out->elementEnd('li');
|
||||||
$out->text(' ');
|
$out->text(' ');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
$out->elementStart('li');
|
$out->elementStart('li');
|
||||||
|
Loading…
Reference in New Issue
Block a user