aboutsummaryrefslogtreecommitdiff
path: root/notes/author.go
blob: 74201c17db2995f0e9d2c8cb5c6747badba84a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package notes

type Author struct {
	PDS         string
	Handle      string
	DisplayName string
	AvatarURL   string
	BannerURL   string
	Pronouns    string
	NoUnauth    bool
}

func IsPublic(author *Author) bool {
	if author == nil {
		return false
	}

	return !author.NoUnauth
}