From d7dd5aae6c0d1ef84f6b09ab1efb937aafa31952 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 26 Dec 2023 16:31:37 -0800 Subject: [PATCH] Explicit Photo handling on Notifications page --- web/templates/account/dashboard.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/web/templates/account/dashboard.html b/web/templates/account/dashboard.html index 52e08db..564e9e0 100644 --- a/web/templates/account/dashboard.html +++ b/web/templates/account/dashboard.html @@ -419,11 +419,11 @@ {{else if eq .Type "new_photo"}} {{if and $Body.Photo (eq $Body.Photo.Visibility "private")}} - + {{else if and $Body.Photo (eq $Body.Photo.Visibility "circle")}} {{else}} - + {{end}} @@ -485,6 +485,18 @@ {{else}} {{or $Body.Photo.Caption "No caption."}} {{end}} + + + {{if and ($Root.CurrentUser.IsAdmin) (not $Body.Photo.Explicit)}} + + {{end}} {{end}}