diff --git a/include/conversation.php b/include/conversation.php index e617eebf38..e971798c95 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -391,10 +391,9 @@ function visible_activity($item) { } } - if (activity_match($item['verb'], ACTIVITY_FOLLOW) && $item['object-type'] === ACTIVITY_OBJ_NOTE) { - if (!(x($item, 'self') && ($item['uid'] == local_user()))) { - return false; - } + /// @TODO such things are unneccessary code-complexibilities and should be avoided + if (activity_match($item['verb'], ACTIVITY_FOLLOW) && $item['object-type'] === ACTIVITY_OBJ_NOTE && !(x($item, 'self') && ($item['uid'] == local_user()))) { + return false; } return true;