aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-05 16:09:53 +0000
committerMario <mario@mariovavti.com>2023-05-05 16:09:53 +0000
commit2bb9550343c6c3e5f1fea516542d44dfda0297ee (patch)
tree2929bf3c68fb3903bd1de2d5ac871654d183c579 /Zotlabs/Lib/Activity.php
parentdfa43b48566ebdc758a46de0090cfcc9617471b1 (diff)
downloadvolse-hubzilla-2bb9550343c6c3e5f1fea516542d44dfda0297ee.tar.gz
volse-hubzilla-2bb9550343c6c3e5f1fea516542d44dfda0297ee.tar.bz2
volse-hubzilla-2bb9550343c6c3e5f1fea516542d44dfda0297ee.zip
slightly more robust get_quote_bbcode()
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 7a64d3de1..58b7f95a2 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -4067,9 +4067,9 @@ class Activity {
if ($act->is_valid()) {
$content = self::get_content($act->obj);
- $ret .= "[share author='" . urlencode($act->actor['name']) .
+ $ret .= "[share author='" . urlencode($act->actor['name'] ?? $act->actor['preferredUsername']) .
"' profile='" . $act->actor['id'] .
- "' avatar='" . $act->actor['icon']['url'] .
+ "' avatar='" . ($act->actor['icon']['url'] ?? z_root() . '/' . get_default_profile_photo(80)) .
"' link='" . $act->obj['id'] .
"' auth='" . ((is_matrix_url($act->actor['id'])) ? 'true' : 'false') .
"' posted='" . $act->obj['published'] .