]> git.mxchange.org Git - friendica.git/commitdiff
Review: Simplify boolean assignment in Object\Post
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 2 Jan 2018 13:36:35 +0000 (08:36 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 2 Jan 2018 13:36:35 +0000 (08:36 -0500)
src/Object/Post.php

index 28dbf9c3bd306affea88804d70e06063659f7b87..dd32fc3e3ee18ccff7d41573a611f9fb3f7b1fa6 100644 (file)
@@ -168,7 +168,7 @@ class Post extends BaseObject
 
                $filer = (($conv->getProfileOwner() == local_user()) ? t("save to folder") : false);
 
-               $diff_author = ((link_compare($item['url'], $item['author-link'])) ? false : true);
+               $diff_author = !link_compare($item['url'], $item['author-link']);
                $profile_name = htmlentities(((strlen($item['author-name'])) && $diff_author) ? $item['author-name'] : $item['name']);
                if ($item['author-link'] && (!$item['author-name'])) {
                        $profile_name = $item['author-link'];