From: Michael Date: Thu, 18 Jan 2018 20:16:14 +0000 (+0000) Subject: Liking of your own stuff wasn't possible/enable dislike for Diaspora X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2df44eb084dc3e4e29ef2b0dd45e68f28ae1908d;p=friendica.git Liking of your own stuff wasn't possible/enable dislike for Diaspora --- diff --git a/src/Object/Post.php b/src/Object/Post.php index a26004e0f3..517a06b777 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -82,8 +82,9 @@ class Post extends BaseObject continue; } - // You can always comment on Diaspora items - if (($item['network'] == NETWORK_DIASPORA) && (local_user() == $item['uid'])) { + // You can always comment on Diaspora and OStatus items + // The empty network can happen with your local (self) contact + if (in_array($item['network'], ['', NETWORK_OSTATUS, NETWORK_DIASPORA]) && (local_user() == $item['uid'])) { $item['writable'] = true; } @@ -321,8 +322,7 @@ class Post extends BaseObject $owner_name_e = $this->getOwnerName(); // Disable features that aren't available in several networks - /// @todo Add NETWORK_DIASPORA when it will pass this information - if (!in_array($item["item_network"], [NETWORK_DFRN]) && isset($buttons["dislike"])) { + if (!in_array($item["item_network"], [NETWORK_DFRN, NETWORK_DIASPORA]) && isset($buttons["dislike"])) { unset($buttons["dislike"]); $isevent = false; $tagger = '';