mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Remove usage of profile.gender
This commit is contained in:
parent
a7dd0173a7
commit
8e2910976f
10 changed files with 25 additions and 201 deletions
|
@ -722,7 +722,7 @@ class Contact
|
|||
}
|
||||
|
||||
$fields = ['name', 'photo', 'thumb', 'about', 'address', 'locality', 'region',
|
||||
'country-name', 'gender', 'pub_keywords', 'xmpp', 'net-publish'];
|
||||
'country-name', 'pub_keywords', 'xmpp', 'net-publish'];
|
||||
$profile = DBA::selectFirst('profile', $fields, ['uid' => $uid]);
|
||||
if (!DBA::isResult($profile)) {
|
||||
return;
|
||||
|
@ -733,7 +733,7 @@ class Contact
|
|||
$fields = ['name' => $profile['name'], 'nick' => $user['nickname'],
|
||||
'avatar-date' => $self['avatar-date'], 'location' => Profile::formatLocation($profile),
|
||||
'about' => $profile['about'], 'keywords' => $profile['pub_keywords'],
|
||||
'gender' => $profile['gender'], 'contact-type' => $user['account-type'],
|
||||
'gender' => '', 'contact-type' => $user['account-type'],
|
||||
'xmpp' => $profile['xmpp']];
|
||||
|
||||
$avatar = Photo::selectFirst(['resource-id', 'type'], ['uid' => $uid, 'profile' => true]);
|
||||
|
|
|
@ -1117,7 +1117,7 @@ class GContact
|
|||
);
|
||||
|
||||
$gcontact = ['name' => $userdata['name'], 'location' => $location, 'about' => $userdata['about'],
|
||||
'gender' => $userdata['gender'], 'keywords' => $userdata['pub_keywords'],
|
||||
'gender' => '', 'keywords' => $userdata['pub_keywords'],
|
||||
'birthday' => $userdata['dob'], 'photo' => $userdata['photo'],
|
||||
"notify" => $userdata['notify'], 'url' => $userdata['url'],
|
||||
"hide" => ($userdata['hidewall'] || !$userdata['net-publish']),
|
||||
|
|
|
@ -919,7 +919,6 @@ class Profile
|
|||
(`profile`.`locality` LIKE ?) OR
|
||||
(`profile`.`region` LIKE ?) OR
|
||||
(`profile`.`country-name` LIKE ?) OR
|
||||
(`profile`.`gender` LIKE ?) OR
|
||||
(`profile`.`marital` LIKE ?) OR
|
||||
(`profile`.`sexual` LIKE ?) OR
|
||||
(`profile`.`about` LIKE ?) OR
|
||||
|
@ -961,7 +960,6 @@ class Profile
|
|||
(`profile`.`locality` LIKE ?) OR
|
||||
(`profile`.`region` LIKE ?) OR
|
||||
(`profile`.`country-name` LIKE ?) OR
|
||||
(`profile`.`gender` LIKE ?) OR
|
||||
(`profile`.`marital` LIKE ?) OR
|
||||
(`profile`.`sexual` LIKE ?) OR
|
||||
(`profile`.`about` LIKE ?) OR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue