From 7d40f22a2ee9d0c0fb34894546f19176be29f48b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 2 Jan 2018 08:36:35 -0500 Subject: [PATCH] Review: Simplify boolean assignment in Object\Post --- src/Object/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; -- 2.39.5