From 10e54b1bb7979dc21911afce0d20cffc4a2d038a Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Tue, 2 Jun 2026 03:15:03 +0200 Subject: added images --- notes/author.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'notes/author.go') diff --git a/notes/author.go b/notes/author.go index faf4f7b..74201c1 100644 --- a/notes/author.go +++ b/notes/author.go @@ -9,3 +9,11 @@ type Author struct { Pronouns string NoUnauth bool } + +func IsPublic(author *Author) bool { + if author == nil { + return false + } + + return !author.NoUnauth +} -- cgit v1.2.3