From b3fac428e9a258b099cfeb3254460d462699436c Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 7 Dec 2016 15:26:52 +0100 Subject: [PATCH] fixed non-existent profiles being shown --- resources/views/yuuno/user/profile.twig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/views/yuuno/user/profile.twig b/resources/views/yuuno/user/profile.twig index bab8a87..d73ca14 100644 --- a/resources/views/yuuno/user/profile.twig +++ b/resources/views/yuuno/user/profile.twig @@ -1,11 +1,8 @@ {% extends 'master.twig' %} -{% set profileHidden = not profile.activated and (user.id != profile.id and not (user.perms.isMod or user.perms.isAdmin)) %} - +{% set profileHidden = profile.id == 0 or not profile.activated and (user.id != profile.id and not (user.perms.isMod or user.perms.isAdmin)) %} {% set noUserpage = profile.userPage|length < 1 %} - {% set title = profileHidden ? 'User not found!' : 'Profile of ' ~ profile.username %} - {% set youtubeIsChannelId = profile.youtube|slice(0, 2) == 'UC' and profile.youtube|length == 24 %} {% set fields = {