aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-03 11:57:35 +0000
committerMario <mario@mariovavti.com>2022-11-03 11:57:35 +0000
commitc2a796b6ea4a8af23494e72e6c446ea847bf9627 (patch)
treeb5af7dfaf8f5f5cb89d148b9bcc696648831a3a6 /Zotlabs/Lib/Activity.php
parent00694f0dfd03ab51c511a0ba35c98cfe1e22f918 (diff)
downloadvolse-hubzilla-c2a796b6ea4a8af23494e72e6c446ea847bf9627.tar.gz
volse-hubzilla-c2a796b6ea4a8af23494e72e6c446ea847bf9627.tar.bz2
volse-hubzilla-c2a796b6ea4a8af23494e72e6c446ea847bf9627.zip
rename variable and warning fixes
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 1a34fdae6..180c533ef 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2280,10 +2280,10 @@ class Activity {
$mention = self::get_actor_bbmention($obj_actor['id']);
if ($act->type === 'Like') {
- $content['content'] = sprintf(t('Likes %1$s\'s %2$s'), $mention, $act->obj['type']) . "\n\n" . $content['content'];
+ $content['content'] = sprintf(t('Likes %1$s\'s %2$s'), $mention, $act->obj['type']) . "\n\n" . $content['content'] ?? '';
}
if ($act->type === 'Dislike') {
- $content['content'] = sprintf(t('Doesn\'t like %1$s\'s %2$s'), $mention, $act->obj['type']) . "\n\n" . $content['content'];
+ $content['content'] = sprintf(t('Doesn\'t like %1$s\'s %2$s'), $mention, $act->obj['type']) . "\n\n" . $content['content'] ?? '';
}
// handle event RSVPs
@@ -2791,11 +2791,7 @@ class Activity {
call_hooks('decode_note', $hookinfo);
- $s = $hookinfo['s'];
-
-
-
- return $s;
+ return $hookinfo['s'];
}