From: Hypolite Petovan Date: Tue, 2 Jan 2018 13:36:35 +0000 (-0500) Subject: Review: Simplify boolean assignment in Object\Post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d40f22a2ee9d0c0fb34894546f19176be29f48b;p=friendica.git Review: Simplify boolean assignment in Object\Post --- diff --git a/src/Object/Post.php b/src/Object/Post.php index 28dbf9c3bd..dd32fc3e3e 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -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'];