<td></td>
</tr>
-<tr>
-<td><code>hometown</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>gender</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>marital</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>marital_with</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>marital_since</code></td>
-<td>String (Date)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>sexual</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>politic</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>religion</code></td>
-<td>String</td>
-<td></td>
-</tr>
-
<tr>
<td><code>public_keywords</code></td>
<td>String</td>
<td>Comma-separated list of words meant to be used for search only.</td>
</tr>
-<tr>
-<td><code>likes</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>dislikes</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>about</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>music</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>book</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>tv</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>film</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>interest</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>romance</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>work</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>education</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
-<tr>
-<td><code>social_networks</code></td>
-<td>String (Plaintext)</td>
-<td></td>
-</tr>
-
<tr>
<td><code>homepage</code></td>
<td>String (URL)</td>
<td></td>
</tr>
-<tr>
-<td><code>users</code></td>
-<td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
-<td>If populated, only these contacts have access to the profile.</td>
-</tr>
-
</tbody>
</table>
### src/Content/ContactSelector.php
Hook::callAll('network_to_name', $nets);
- Hook::callAll('gender_selector', $select);
- Hook::callAll('sexpref_selector', $select);
- Hook::callAll('marital_selector', $select);
### src/Content/OEmbed.php
| region | | varchar(255) | NO | | | |
| postal-code | | varchar(32) | NO | | | |
| country-name | | varchar(255) | NO | | | |
-| hometown | | varchar(255) | NO | MUL | | |
-| gender | | varchar(32) | NO | | | |
-| marital | | varchar(255) | NO | | | |
-| with | | text | NO | | NULL | |
-| howlong | | datetime | NO | | 0001-01-01 00:00:00 | |
-| sexual | | varchar(255) | NO | | | |
-| politic | | varchar(255) | NO | | | |
-| religion | | varchar(255) | NO | | | |
+| hometown | Deprecated | varchar(255) | NO | MUL | | |
+| gender | Deprecated | varchar(32) | NO | | | |
+| marital | Deprecated | varchar(255) | NO | | | |
+| with | Deprecated | text | NO | | NULL | |
+| howlong | Deprecated | datetime | NO | | 0001-01-01 00:00:00 | |
+| sexual | Deprecated | varchar(255) | NO | | | |
+| politic | Deprecated | varchar(255) | NO | | | |
+| religion | Deprecated | varchar(255) | NO | | | |
| pub_keywords | | text | NO | | NULL | |
| prv_keywords | | text | NO | | NULL | |
-| likes | | text | NO | | NULL | |
-| dislikes | | text | NO | | NULL | |
-| about | | text | NO | | NULL | |
-| summary | | varchar(255) | NO | | | |
-| music | | text | NO | | NULL | |
-| book | | text | NO | | NULL | |
-| tv | | text | NO | | NULL | |
-| film | | text | NO | | NULL | |
-| interest | | text | NO | | NULL | |
-| romance | | text | NO | | NULL | |
-| work | | text | NO | | NULL | |
-| education | | text | NO | | NULL | |
-| contact | | text | NO | | NULL | |
+| likes | Deprecated | text | NO | | NULL | |
+| dislikes | Deprecated | text | NO | | NULL | |
+| about | Deprecated | text | NO | | NULL | |
+| summary | Deprecated | varchar(255) | NO | | | |
+| music | Deprecated | text | NO | | NULL | |
+| book | Deprecated | text | NO | | NULL | |
+| tv | Deprecated | text | NO | | NULL | |
+| film | Deprecated | text | NO | | NULL | |
+| interest | Deprecated | text | NO | | NULL | |
+| romance | Deprecated | text | NO | | NULL | |
+| work | Deprecated | text | NO | | NULL | |
+| education | Deprecated | text | NO | | NULL | |
+| contact | Deprecated | text | NO | | NULL | |
| homepage | | varchar(255) | NO | | | |
| photo | | varchar(255) | NO | | | |
| thumb | | varchar(255) | NO | | | |
### src/Content/ContactSelector.php
Hook::callAll('network_to_name', $nets);
- Hook::callAll('gender_selector', $select);
- Hook::callAll('sexpref_selector', $select);
- Hook::callAll('marital_selector', $select);
### src/Content/OEmbed.php
return $network_icon;
}
- /**
- * @param string $current optional, default empty
- * @param string $suffix optionsl, default empty
- * @return string
- * @throws \Friendica\Network\HTTPException\InternalServerErrorException
- */
- public static function gender($current = "", $suffix = "")
- {
- $o = '';
- $select = [
- '' => DI::l10n()->t('No answer'),
- 'Male' => DI::l10n()->t('Male'),
- 'Female' => DI::l10n()->t('Female'),
- 'Currently Male' => DI::l10n()->t('Currently Male'),
- 'Currently Female' => DI::l10n()->t('Currently Female'),
- 'Mostly Male' => DI::l10n()->t('Mostly Male'),
- 'Mostly Female' => DI::l10n()->t('Mostly Female'),
- 'Transgender' => DI::l10n()->t('Transgender'),
- 'Intersex' => DI::l10n()->t('Intersex'),
- 'Transsexual' => DI::l10n()->t('Transsexual'),
- 'Hermaphrodite' => DI::l10n()->t('Hermaphrodite'),
- 'Neuter' => DI::l10n()->t('Neuter'),
- 'Non-specific' => DI::l10n()->t('Non-specific'),
- 'Other' => DI::l10n()->t('Other'),
- 'Undecided' => DI::l10n()->t('Undecided'),
- ];
-
- Hook::callAll('gender_selector', $select);
-
- $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
- foreach ($select as $neutral => $selection) {
- if ($selection !== 'NOTRANSLATION') {
- $selected = (($neutral == $current) ? ' selected="selected" ' : '');
- $o .= "<option value=\"$neutral\" $selected >$selection</option>";
- }
- }
- $o .= '</select>';
- return $o;
- }
-
/**
* @param string $current optional, default empty
* @param string $suffix optionsl, default empty
}
$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;
$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]);
);
$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']),
(`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
(`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
$location = '';
}
- $gender = (!empty($profile['gender']) ? DI::l10n()->t('Gender:') : false);
$marital = (!empty($profile['marital']) ? DI::l10n()->t('Status:') : false);
$homepage = (!empty($profile['homepage']) ? DI::l10n()->t('Homepage:') : false);
$about = (!empty($profile['about']) ? DI::l10n()->t('About:') : false);
'profile' => $profile,
'location' => $location_e,
'tags' => $contact['pub_keywords'],
- 'gender' => $gender,
'pdesc' => $pdesc,
'marital' => $marital,
'homepage' => $homepage,
$json_info['last-activity'] = date('o-W', $last_active);
//These are optional fields.
- $profile_fields = ['pdesc', 'locality', 'region', 'postal-code', 'country-name', 'gender', 'marital', 'about'];
+ $profile_fields = ['pdesc', 'locality', 'region', 'postal-code', 'country-name', 'marital', 'about'];
foreach ($profile_fields as $field) {
if (!empty($a->profile[$field])) {
$json_info["$field"] = $a->profile[$field];