$shared = Item::getShareArray($item);
if (!empty($shared) && empty($shared['comment'])) {
$profiledata = [
- 'uid' => -1,
+ 'uid' => 0,
'id' => -1,
'nickname' => '',
'name' => '',
$pending = $pcontact['pending'] ?? false;
}
- if (!$contact['self'] && Protocol::supportsFollow($contact['network'])) {
+ if (empty($contact['self']) && Protocol::supportsFollow($contact['network'])) {
if (in_array($rel, [Contact::SHARING, Contact::FRIEND])) {
$unfollow_link = 'unfollow?url=' . urlencode($contact['url']) . '&auto=1';
} elseif (!$pending) {