1
0
Fork 0

extended the "interesting" profile attributes

This commit is contained in:
friendica 2012-04-12 21:58:15 -07:00
parent 446e962bb8
commit af68d033e3

View file

@ -67,8 +67,11 @@ function profiles_post(&$a) {
// linkify the relationship target if applicable // linkify the relationship target if applicable
$withchanged = false;
if(strlen($with)) { if(strlen($with)) {
if($with != strip_tags($orig[0]['with'])) { if($with != strip_tags($orig[0]['with'])) {
$withchanged = true;
$prf = ''; $prf = '';
$lookup = $with; $lookup = $with;
if(strpos($lookup,'@') === 0) if(strpos($lookup,'@') === 0)
@ -138,10 +141,14 @@ function profiles_post(&$a) {
$changes = array(); $changes = array();
if($is_default) { if($is_default) {
if($marital != $orig[0]['marital']) $changes[] = '♥ ' . t('Marital Status'); if($marital != $orig[0]['marital']) $changes[] = '♥ ' . t('Marital Status');
if($withchanged) $changes[] = '♥ ' . t('Romantic Partner');
if($work != $orig[0]['work']) $changes[] = t('Work/Employment'); if($work != $orig[0]['work']) $changes[] = t('Work/Employment');
if($religion != $orig[0]['religion']) $changes[] = t('Religion'); if($religion != $orig[0]['religion']) $changes[] = t('Religion');
if($politic != $orig[0]['politic']) $changes[] = t('Political Views'); if($politic != $orig[0]['politic']) $changes[] = t('Political Views');
if($gender != $orig[0]['gender']) $changes[] = t('Gender');
if($sexual != $orig[0]['sexual']) $changes[] = t('Sexual Preference');
if($homepage != $orig[0]['homepage']) $changes[] = t('Homepage');
if($interest != $orig[0]['interest']) $changes[] = t('Interests');
if($address != $orig[0]['address'] || $locality != $orig[0]['locality'] || $region != $orig[0]['region'] if($address != $orig[0]['address'] || $locality != $orig[0]['locality'] || $region != $orig[0]['region']
|| $country_name != $orig[0]['country_name']) || $country_name != $orig[0]['country_name'])
$changes[] = t('Location'); $changes[] = t('Location');