aboutsummaryrefslogtreecommitdiff
path: root/notes/author.go
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-06-02 03:15:03 +0200
committerGuillermo Serrahima <dev@vylion.com>2026-07-14 23:11:05 +0200
commit10e54b1bb7979dc21911afce0d20cffc4a2d038a (patch)
treea0513d16a7896031efff51db61f04a50b95f719e /notes/author.go
parent9f0a9a6779f00786e4728ad5c3fad36814a293b0 (diff)
downloadllostre-10e54b1bb7979dc21911afce0d20cffc4a2d038a.tar.xz
llostre-10e54b1bb7979dc21911afce0d20cffc4a2d038a.zip
added images
Diffstat (limited to 'notes/author.go')
-rw-r--r--notes/author.go8
1 files changed, 8 insertions, 0 deletions
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
+}