mirror of
https://github.com/friendica/friendica
synced 2025-04-22 12:30:12 +00:00
Remove uses of profile.marital
This commit is contained in:
parent
8e2910976f
commit
e69497454b
9 changed files with 1 additions and 81 deletions
|
@ -137,7 +137,6 @@ class Directory extends BaseModule
|
|||
$location = '';
|
||||
}
|
||||
|
||||
$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);
|
||||
|
||||
|
@ -160,7 +159,6 @@ class Directory extends BaseModule
|
|||
'location' => $location_e,
|
||||
'tags' => $contact['pub_keywords'],
|
||||
'pdesc' => $pdesc,
|
||||
'marital' => $marital,
|
||||
'homepage' => $homepage,
|
||||
'about' => $about,
|
||||
'photo_menu' => $photo_menu,
|
||||
|
|
|
@ -103,7 +103,7 @@ class NoScrape extends BaseModule
|
|||
$json_info['last-activity'] = date('o-W', $last_active);
|
||||
|
||||
//These are optional fields.
|
||||
$profile_fields = ['pdesc', 'locality', 'region', 'postal-code', 'country-name', 'marital', 'about'];
|
||||
$profile_fields = ['pdesc', 'locality', 'region', 'postal-code', 'country-name', 'about'];
|
||||
foreach ($profile_fields as $field) {
|
||||
if (!empty($a->profile[$field])) {
|
||||
$json_info["$field"] = $a->profile[$field];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue