mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Rework Profile::sidebar profile link conditions
- Now show Follow, Unfollow, Atom Feed and Message in profile sidebar more consistently with the status of the current visitor - Remove pseudo-field contact.remoteconnect
This commit is contained in:
parent
61c79ce9ee
commit
3aebb92cf3
9 changed files with 150 additions and 175 deletions
|
@ -124,6 +124,20 @@ class Contact extends BaseObject
|
|||
return DBA::toArray($statement);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $fields Array of selected fields, empty for all
|
||||
* @param array $condition Array of fields for condition
|
||||
* @param array $params Array of several parameters
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function selectFirst(array $fields = [], array $condition = [], array $params = [])
|
||||
{
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition, $params);
|
||||
|
||||
return $contact;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $id Contact ID
|
||||
* @param array $fields Array of selected fields, empty for all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue