From 0aee9a054a407484a81f99cc10f8fc9e2e1e35fd Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 3 Jun 2022 17:40:06 +0000 Subject: [PATCH] Fix: Like/Dislike/Reshare actions should now be visible --- mod/display.php | 1 + src/Content/Conversation.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/display.php b/mod/display.php index 57696ce07..6c04d9d7f 100644 --- a/mod/display.php +++ b/mod/display.php @@ -115,6 +115,7 @@ function display_init(App $a) if (\Friendica\Util\Network::isLocalLink($author['url'])) { \Friendica\Model\Profile::load(DI::app(), $author['nick'], false); } else { + $a->setProfileOwner($item['uid']); DI::page()['aside'] = Widget\VCard::getHTML($author); } } diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index 79067d3f3..e30b809ae 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -819,7 +819,7 @@ class Conversation { $this->profiler->startRecording('rendering'); - if ($row['uid'] == 0) { + if (!$row['writable']) { $row['writable'] = in_array($row['network'], Protocol::FEDERATED); }