Fixes notices
This commit is contained in:
parent
e17db489ee
commit
f3cae4bf0c
|
@ -2373,6 +2373,10 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function magicLinkByContact($contact, $url = '')
|
||||
{
|
||||
if (empty($contact['id']) || empty($contact['uid'])) {
|
||||
return $url ?: $contact['url'];
|
||||
}
|
||||
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ class Item extends BaseObject
|
|||
|
||||
// Field list that is used to display the items
|
||||
const DISPLAY_FIELDLIST = [
|
||||
'uid', 'id', 'parent', 'uri', 'thr-parent', 'parent-uri', 'guid', 'network', 'gravity',
|
||||
'uid', 'id', 'parent', 'uri', 'thr-parent', 'parent-uri', 'guid', 'parent-guid', 'network', 'gravity',
|
||||
'commented', 'created', 'edited', 'received', 'verb', 'object-type', 'postopts', 'plink',
|
||||
'wall', 'private', 'starred', 'origin', 'title', 'body', 'file', 'attach', 'language',
|
||||
'content-warning', 'location', 'coord', 'app', 'rendered-hash', 'rendered-html', 'object',
|
||||
|
|
Loading…
Reference in a new issue