From cf50364c6d1b09e18a5920da23e9de6c22089815 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 1 Jun 2022 19:43:34 +0800 Subject: [PATCH] Fix members only post indicator visibility when logged in --- partials/post-card.hbs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/partials/post-card.hbs b/partials/post-card.hbs index aec4cda..88b36ad 100644 --- a/partials/post-card.hbs +++ b/partials/post-card.hbs @@ -1,7 +1,7 @@ {{!-- This is a partial file used to generate a post "card" which templates loop over to generate a list of posts. --}} -
+
{{#if feature_image}} @@ -19,6 +19,7 @@ which templates loop over to generate a list of posts. --}} loading="lazy" /> + {{#unless access}} {{^has visibility="public"}}
{{> "icons/lock"}} @@ -29,6 +30,7 @@ which templates loop over to generate a list of posts. --}} {{/has}}
{{/has}} + {{/unless}}
{{/if}} @@ -46,11 +48,13 @@ which templates loop over to generate a list of posts. --}} {{/if}}

+ {{#unless access}} {{^has visibility="public"}} {{#unless feature_image}} {{> "icons/lock"}} {{/unless}} {{/has}} + {{/unless}} {{title}}