From 25f91ceaa979ca3e7761d8c45546b03f7511d48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Fri, 26 May 2017 16:59:08 +0200 Subject: [PATCH] Display NSFW logo in _post --- app/widgets/Post/_post.tpl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/widgets/Post/_post.tpl b/app/widgets/Post/_post.tpl index 7a955dd6d..3ca09dbc8 100644 --- a/app/widgets/Post/_post.tpl +++ b/app/widgets/Post/_post.tpl @@ -56,7 +56,11 @@ {if="$post->isMicroblog()"} {$url = $contact->getPhoto('s')} - {if="$url"} + {if="$post->isNSFW()"} + + +18 + + {elseif="$url"} @@ -70,7 +74,11 @@ {/if} {else} - {if="$post->logo"} + {if="$post->isNSFW()"} + + +18 + + {elseif="$post->logo"}