diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-06-02 03:15:03 +0200 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-07-14 23:11:05 +0200 |
| commit | 10e54b1bb7979dc21911afce0d20cffc4a2d038a (patch) | |
| tree | a0513d16a7896031efff51db61f04a50b95f719e /notes/author.go | |
| parent | 9f0a9a6779f00786e4728ad5c3fad36814a293b0 (diff) | |
| download | llostre-10e54b1bb7979dc21911afce0d20cffc4a2d038a.tar.xz llostre-10e54b1bb7979dc21911afce0d20cffc4a2d038a.zip | |
added images
Diffstat (limited to 'notes/author.go')
| -rw-r--r-- | notes/author.go | 8 |
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 +} |
