aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-05-26 15:42:23 +0200
committerMichael Vogel <icarus@dabo.de>2012-05-26 15:42:23 +0200
commita08232fa955385b2eaff5f9094b39071fb1632ae (patch)
treeb18ccde349d9f2a0dc06e32bdae0007b5953d4f9 /mod/profiles.php
parent7f19d39b146844fd71d148690d3e550df9d3043b (diff)
parent817fc37f41c030381507384db581f62d9a1b5044 (diff)
downloadvolse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.tar.gz
volse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.tar.bz2
volse-hubzilla-a08232fa955385b2eaff5f9094b39071fb1632ae.zip
Merge branch 'master' of github.com:annando/friendica
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 8e4fba74e..ca3890eb9 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -176,9 +176,18 @@ function profiles_post(&$a) {
$changes[] = t('Interests');
$value = $interest;
}
- if($address != $orig[0]['address'] || $locality != $orig[0]['locality'] || $region != $orig[0]['region']
+ if($address != $orig[0]['address']) {
+ $changes[] = t('Address');
+ // New address not sent in notifications, potential privacy issues
+ // in case this leaks to unintended recipients. Yes, it's in the public
+ // profile but that doesn't mean we have to broadcast it to everybody.
+ }
+ if($locality != $orig[0]['locality'] || $region != $orig[0]['region']
|| $country_name != $orig[0]['country-name']) {
$changes[] = t('Location');
+ $comma1 = ((($locality) && ($region || $country_name)) ? ', ' : ' ');
+ $comma2 = (($region && $country_name) ? ', ' : '');
+ $value = $locality . $comma1 . $region . $comma2 . $country_name;
}
profile_activity($changes,$value);