Review: Simplify boolean assignment in Object\Post

This commit is contained in:
Hypolite Petovan 2018-01-02 08:36:35 -05:00
parent 9ea4fad46c
commit 7d40f22a2e

View 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'];