aboutsummaryrefslogtreecommitdiffstats
path: root/include/activities.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-26 17:48:05 -0700
committerfriendica <info@friendica.com>2013-08-26 17:48:05 -0700
commit2e72b136c558652ca9a9b755b29cdb99ee27ee7f (patch)
tree287c71a74041658af03c42f580191dd0323f0210 /include/activities.php
parent7a8363c328d69b53a0c949bc2d8a047d2536d911 (diff)
downloadvolse-hubzilla-2e72b136c558652ca9a9b755b29cdb99ee27ee7f.tar.gz
volse-hubzilla-2e72b136c558652ca9a9b755b29cdb99ee27ee7f.tar.bz2
volse-hubzilla-2e72b136c558652ca9a9b755b29cdb99ee27ee7f.zip
fix profile change activity where the change is a solitary url - and includes a stray right quote
Diffstat (limited to 'include/activities.php')
-rw-r--r--include/activities.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/activities.php b/include/activities.php
index 10a01792f..7ef26abeb 100644
--- a/include/activities.php
+++ b/include/activities.php
@@ -45,6 +45,8 @@ function profile_activity($changed, $value) {
$prof = '[url=' . z_root() . '/profile/' . $self['channel_address'] . ']' . t('public profile') . '[/url]';
if($t == 1 && strlen($value)) {
+ // if it's a url, the HTML quotes will mess it up, so link it and don't try and zidify it because we don't know what it points to.
+ $value = linkify($value);
$message = sprintf( t('%1$s changed %2$s to &ldquo;%3$s&rdquo;'), $A, $changes, $value);
$message .= "\n\n" . sprintf( t('Visit %1$s\'s %2$s'), $A, $prof);
}