aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-22 09:09:41 +0000
committerMario <mario@mariovavti.com>2024-01-22 09:09:41 +0000
commitb0664f7349c60183f0cb9597bd02b741d3c165c8 (patch)
tree4fa48e0c3b2761e0dc6d132f45a236ee838061c1 /Zotlabs/Widget
parent9cfd1c231843214351c81273622e848af4db7a45 (diff)
downloadvolse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.tar.gz
volse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.tar.bz2
volse-hubzilla-b0664f7349c60183f0cb9597bd02b741d3c165c8.zip
store the original announce actor (the one that pushed the item into our stream first) in source_xchan instead of owner_xchan. this way we will preserve the real owner for the thread and not have conflicts when dealing with deletes of comments or likes
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Messages.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php
index cdd889121..b56fc86f9 100644
--- a/Zotlabs/Widget/Messages.php
+++ b/Zotlabs/Widget/Messages.php
@@ -147,6 +147,9 @@ class Messages {
if($item['owner_xchan'] !== $item['author_xchan']) {
$info .= t('via') . ' ' . $item['owner']['xchan_name'];
}
+ elseif($item['verb'] === 'Announce' && isset($item['source'])) {
+ $info .= t('via') . ' ' . $item['source']['xchan_name'];
+ }
$summary = $item['title'];
if (!$summary) {