aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorroot <root@debian.(none)>2012-06-01 03:10:57 -0400
committerroot <root@debian.(none)>2012-06-01 03:10:57 -0400
commitbad66a1154b3ef6ba639038218317f7ac5bf43d7 (patch)
treea03244a0005d732412fcfe6a1c8eb5734fcf6b78 /mod/profiles.php
parent88d5d9684a51119f62a60c588b2bf468f71fd884 (diff)
parent93bc29a711637c84a4ffc380078277de89af4e6d (diff)
downloadvolse-hubzilla-bad66a1154b3ef6ba639038218317f7ac5bf43d7.tar.gz
volse-hubzilla-bad66a1154b3ef6ba639038218317f7ac5bf43d7.tar.bz2
volse-hubzilla-bad66a1154b3ef6ba639038218317f7ac5bf43d7.zip
Merge remote branch 'friendica/master'
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 26fc88765..ca3890eb9 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -146,7 +146,7 @@ function profiles_post(&$a) {
$value = $marital;
}
if($withchanged) {
- $changes[] = '&hearts; ' . t('Romantic Partner');
+ $changes[] = '[color=#ff0000]&hearts;[/color] ' . t('Romantic Partner');
$value = strip_tags($with);
}
if($work != $orig[0]['work']) {
@@ -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);