No more gender

This commit is contained in:
Michael 2020-02-16 10:55:18 +00:00
parent 797e3a2079
commit 3bd1f3a836
24 changed files with 32 additions and 128 deletions

View file

@ -57,7 +57,7 @@ class Probe
private static function rearrangeData($data)
{
$fields = ["name", "nick", "guid", "url", "addr", "alias", "photo", "account-type",
"community", "keywords", "location", "about", "gender", "hide",
"community", "keywords", "location", "about", "hide",
"batch", "notify", "poll", "request", "confirm", "poco",
"following", "followers", "inbox", "outbox", "sharedinbox",
"priority", "network", "pubkey", "baseurl"];
@ -849,9 +849,6 @@ class Probe
if (!empty($profile['description'])) {
$data['about'] = $profile['description'];
}
if (!empty($profile['gender'])) {
$data['gender'] = $profile['gender'];
}
if (!empty($profile['keywords'])) {
$keywords = implode(', ', $profile['keywords']);
if (!empty($keywords)) {
@ -1012,10 +1009,6 @@ class Probe
$data["about"] = $json["about"];
}
if (!empty($json["gender"])) {
$data["gender"] = $json["gender"];
}
if (!empty($json["key"])) {
$data["pubkey"] = $json["key"];
}