aboutsummaryrefslogtreecommitdiffstats
path: root/include/activities.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-29 17:35:05 +0000
committerMario <mario@mariovavti.com>2024-02-29 17:35:05 +0000
commit8435d9eb1305d9678ef730c5a4924769b830e7d2 (patch)
tree8a8ad410fdbbf926899f1244076c592e98b93862 /include/activities.php
parentd97df1859f9c1533c0d2e54c72f22767eecc800e (diff)
downloadvolse-hubzilla-8435d9eb1305d9678ef730c5a4924769b830e7d2.tar.gz
volse-hubzilla-8435d9eb1305d9678ef730c5a4924769b830e7d2.tar.bz2
volse-hubzilla-8435d9eb1305d9678ef730c5a4924769b830e7d2.zip
some cleanup
Diffstat (limited to 'include/activities.php')
-rw-r--r--include/activities.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/activities.php b/include/activities.php
index bb80e7906..7bf808dbb 100644
--- a/include/activities.php
+++ b/include/activities.php
@@ -53,22 +53,26 @@ function profile_activity($changed, $value) {
}
if ($photo) {
- $value = "\n\n" . '[zmg=' . z_root() . '/photo/' . $value . '-' . $photo_size . ']' . $ch . '[/zmg]';
+ $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);
}
- $message = sprintf(t('%1$s updated %2$s to %3$s'), $channel_link, $changes, $value);
- $message .= "\n\n" . sprintf(t('Visit %1$s\'s %2$s'), $channel_link, $profile_link);
} else {
- $message = sprintf(t('%1$s has updated %2$s, changing %3$s.'), $channel_link, $profile_link, $changes);
+ $message = sprintf(t('%1$s has an updated %2$s, changing %3$s.'), $channel_link, $profile_link, $changes);
}
$arr['body'] = $message;
$arr['obj'] = [
'type' => 'Profile',
- 'summary' => bbcode($message),
+ 'content' => bbcode($message),
'source' => [
- 'summary' => $message,
+ 'content' => $message,
'mediaType' => 'text/bbcode'
],
'describes' => Activity::encode_person($channel),