Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 13 May 2018 14:58:40 +0000 (16:58 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:50:05 +0000 (22:50 +0200)
- merged 2 if() into one with &&
- added TODO for possible rewrite (avoid "complex" code)

Signed-off-by: Roland Häder <roland@mxchange.org>
include/conversation.php

index e617eeb..e971798 100644 (file)
@@ -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;