mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
No more gender
This commit is contained in:
parent
797e3a2079
commit
3bd1f3a836
24 changed files with 32 additions and 128 deletions
|
@ -2299,7 +2299,6 @@ class Diaspora
|
|||
$name = XML::unescape($data->first_name).((strlen($data->last_name)) ? " ".XML::unescape($data->last_name) : "");
|
||||
$image_url = XML::unescape($data->image_url);
|
||||
$birthday = XML::unescape($data->birthday);
|
||||
$gender = XML::unescape($data->gender);
|
||||
$about = Markdown::toBBCode(XML::unescape($data->bio));
|
||||
$location = Markdown::toBBCode(XML::unescape($data->location));
|
||||
$searchable = (XML::unescape($data->searchable) == "true");
|
||||
|
@ -2347,8 +2346,7 @@ class Diaspora
|
|||
}
|
||||
|
||||
$fields = ['name' => $name, 'location' => $location,
|
||||
'name-date' => DateTimeFormat::utcNow(),
|
||||
'about' => $about, 'gender' => $gender,
|
||||
'name-date' => DateTimeFormat::utcNow(), 'about' => $about,
|
||||
'addr' => $author, 'nick' => $nick, 'keywords' => $keywords,
|
||||
'unsearchable' => !$searchable, 'sensitive' => $nsfw];
|
||||
|
||||
|
@ -2362,7 +2360,7 @@ class Diaspora
|
|||
|
||||
$gcontact = ["url" => $contact["url"], "network" => Protocol::DIASPORA, "generation" => 2,
|
||||
"photo" => $image_url, "name" => $name, "location" => $location,
|
||||
"about" => $about, "birthday" => $birthday, "gender" => $gender,
|
||||
"about" => $about, "birthday" => $birthday,
|
||||
"addr" => $author, "nick" => $nick, "keywords" => $keywords,
|
||||
"hide" => !$searchable, "nsfw" => $nsfw];
|
||||
|
||||
|
@ -4164,7 +4162,6 @@ class Diaspora
|
|||
"image_url_medium" => $medium,
|
||||
"image_url_small" => $small,
|
||||
"birthday" => $dob,
|
||||
"gender" => $profile['gender'],
|
||||
"bio" => $about,
|
||||
"location" => $location,
|
||||
"searchable" => $searchable,
|
||||
|
|
|
@ -99,7 +99,7 @@ class PortableContact
|
|||
return;
|
||||
}
|
||||
|
||||
$url = $url . (($uid) ? '/@me/@all?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,gender,contactType,generation' : '?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,gender,contactType,generation');
|
||||
$url = $url . (($uid) ? '/@me/@all?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,contactType,generation' : '?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,contactType,generation');
|
||||
|
||||
Logger::log('load: ' . $url, Logger::DEBUG);
|
||||
|
||||
|
@ -134,7 +134,6 @@ class PortableContact
|
|||
$location = '';
|
||||
$about = '';
|
||||
$keywords = '';
|
||||
$gender = '';
|
||||
$contact_type = -1;
|
||||
$generation = 0;
|
||||
|
||||
|
@ -179,10 +178,6 @@ class PortableContact
|
|||
$about = HTML::toBBCode($entry['aboutMe']);
|
||||
}
|
||||
|
||||
if (isset($entry['gender'])) {
|
||||
$gender = $entry['gender'];
|
||||
}
|
||||
|
||||
if (isset($entry['generation']) && ($entry['generation'] > 0)) {
|
||||
$generation = ++$entry['generation'];
|
||||
}
|
||||
|
@ -203,7 +198,6 @@ class PortableContact
|
|||
"photo" => $profile_photo,
|
||||
"about" => $about,
|
||||
"location" => $location,
|
||||
"gender" => $gender,
|
||||
"keywords" => $keywords,
|
||||
"connect" => $connect_url,
|
||||
"updated" => $updated,
|
||||
|
@ -293,7 +287,7 @@ class PortableContact
|
|||
self::fetchServerlist($server["poco"]);
|
||||
|
||||
// Fetch all users from the other server
|
||||
$url = $server["poco"] . "/?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,gender,contactType,generation";
|
||||
$url = $server["poco"] . "/?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,contactType,generation";
|
||||
|
||||
Logger::info("Fetch all users from the server " . $server["url"]);
|
||||
|
||||
|
@ -316,7 +310,7 @@ class PortableContact
|
|||
$updatedSince = date(DateTimeFormat::MYSQL, time() - $timeframe * 86400);
|
||||
|
||||
// Fetch all global contacts from the other server (Not working with Redmatrix and Friendica versions before 3.3)
|
||||
$url = $server["poco"]."/@global?updatedSince=".$updatedSince."&fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,gender,contactType,generation";
|
||||
$url = $server["poco"]."/@global?updatedSince=".$updatedSince."&fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,contactType,generation";
|
||||
|
||||
$success = false;
|
||||
|
||||
|
@ -376,7 +370,7 @@ class PortableContact
|
|||
Logger::log('Fetch contacts for the user ' . $username . ' from the server ' . $server['nurl'], Logger::DEBUG);
|
||||
|
||||
// Fetch all contacts from a given user from the other server
|
||||
$url = $server['poco'] . '/' . $username . '/?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,gender,contactType,generation';
|
||||
$url = $server['poco'] . '/' . $username . '/?fields=displayName,urls,photos,updated,network,aboutMe,currentLocation,tags,contactType,generation';
|
||||
|
||||
$curlResult = Network::curl($url);
|
||||
|
||||
|
@ -409,7 +403,6 @@ class PortableContact
|
|||
$location = '';
|
||||
$about = '';
|
||||
$keywords = '';
|
||||
$gender = '';
|
||||
$contact_type = -1;
|
||||
$generation = $default_generation;
|
||||
|
||||
|
@ -455,10 +448,6 @@ class PortableContact
|
|||
$about = HTML::toBBCode($entry['aboutMe']);
|
||||
}
|
||||
|
||||
if (isset($entry['gender'])) {
|
||||
$gender = $entry['gender'];
|
||||
}
|
||||
|
||||
if (isset($entry['generation']) && ($entry['generation'] > 0)) {
|
||||
$generation = ++$entry['generation'];
|
||||
}
|
||||
|
@ -484,7 +473,6 @@ class PortableContact
|
|||
"photo" => $profile_photo,
|
||||
"about" => $about,
|
||||
"location" => $location,
|
||||
"gender" => $gender,
|
||||
"keywords" => $keywords,
|
||||
"connect" => $connect_url,
|
||||
"updated" => $updated,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue