]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4321 from hoergen/develop
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 24 Jan 2018 07:08:09 +0000 (02:08 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2018 07:08:09 +0000 (02:08 -0500)
removed heading backgrnd, added mention highlight

src/Object/Post.php

index 59258a0aec7ccc4fbafd988825504922e72460ac..f933da9d0f3a81749da0607810e97b8b43861e22 100644 (file)
@@ -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);