aboutsummaryrefslogtreecommitdiffstats
path: root/include/activities.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-29 21:11:39 +0000
committerMario <mario@mariovavti.com>2024-02-29 21:11:39 +0000
commit4bbeb224f67848cbdd4b07ed4f90341e0a6460c9 (patch)
treee5175bdbb2e3610b545df6ca9650845aaee6f5e4 /include/activities.php
parent8435d9eb1305d9678ef730c5a4924769b830e7d2 (diff)
downloadvolse-hubzilla-4bbeb224f67848cbdd4b07ed4f90341e0a6460c9.tar.gz
volse-hubzilla-4bbeb224f67848cbdd4b07ed4f90341e0a6460c9.tar.bz2
volse-hubzilla-4bbeb224f67848cbdd4b07ed4f90341e0a6460c9.zip
more cleanup
Diffstat (limited to 'include/activities.php')
-rw-r--r--include/activities.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/activities.php b/include/activities.php
index 7bf808dbb..c06a8f6c4 100644
--- a/include/activities.php
+++ b/include/activities.php
@@ -55,15 +55,14 @@ function profile_activity($changed, $value) {
if ($photo) {
$value = "\n\n" . '[zmg=' . z_root() . '/photo/' . $value . '-' . $photo_size . ']' . $ch . ' ' . $channel['xchan_name'] . '[/zmg]';
}
-
- $message = sprintf(t('%1$s\'s %2$s has been updated to %3$s'), $channel_link, $changes, $value);
-
- if (!$photo) {
- $message .= "\n\n" . sprintf(t('Visit %1$s\'s %2$s'), $channel_link, $profile_link);
+ else {
+ $value = '"' . $value . '"';
}
+ $message = sprintf(t('%1$s %2$s has been updated to %3$s.'), $channel_link . '\'s' . (($photo) ? '' : ' ' . $profile_link), strtolower($changes), $value);
+
} else {
- $message = sprintf(t('%1$s has an updated %2$s, changing %3$s.'), $channel_link, $profile_link, $changes);
+ $message = sprintf(t('%1$s updated the %2$s. Changed %3$s.'), $channel_link, $profile_link, strtolower($changes));
}
$arr['body'] = $message;