summaryrefslogtreecommitdiffstats
path: root/lib/Model/ActivityPub/ACore.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/ActivityPub/ACore.php')
-rw-r--r--lib/Model/ActivityPub/ACore.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Model/ActivityPub/ACore.php b/lib/Model/ActivityPub/ACore.php
index 6609000d..ee8bfcb7 100644
--- a/lib/Model/ActivityPub/ACore.php
+++ b/lib/Model/ActivityPub/ACore.php
@@ -210,11 +210,7 @@ class ACore extends Item implements JsonSerializable {
* @return bool
*/
public function hasIcon(): bool {
- if ($this->icon === null) {
- return false;
- }
-
- return true;
+ return ($this->icon !== null);
}
/**