From 19c039242cc5314702acb13cb504c160fef2f825 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Jan 2018 06:39:21 +0000 Subject: [PATCH] It is now possible again to like yourself --- src/Object/Post.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 59258a0ae..f933da9d0 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -84,8 +84,7 @@ class Post extends BaseObject } // 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'])) { + if (in_array($item['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA]) && (local_user() == $item['uid'])) { $item['writable'] = true; } @@ -296,12 +295,6 @@ class Post extends BaseObject if ($shareable) { $buttons['share'] = [t('Share this'), t('share')]; } - - // If a contact isn't writable, we cannot send a like or dislike to it - if (!$item['writable']) { - unset($buttons["like"]); - unset($buttons["dislike"]); - } } $comment = $this->getCommentBox($indent);