diff --git a/collections.go b/collections.go index 5e34561..cd7be58 100644 --- a/collections.go +++ b/collections.go @@ -262,7 +262,7 @@ func (c *Collection) ForPublic() { c.URL = c.CanonicalURL() } -var isLowerLetter = regexp.MustCompile("[a-z]").MatchString +var isAvatarChar = regexp.MustCompile("[a-z0-9]").MatchString func (c *Collection) PersonObject(ids ...int64) *activitystreams.Person { accountRoot := c.FederatedAccount() @@ -297,7 +297,7 @@ func (c *Collection) PersonObject(ids ...int64) *activitystreams.Person { func (c *Collection) AvatarURL() string { fl := string(unicode.ToLower([]rune(c.DisplayTitle())[0])) - if !isLowerLetter(fl) { + if !isAvatarChar(fl) { return "" } return hostName + "/img/avatars/" + fl + ".png" diff --git a/static/img/avatars/0.png b/static/img/avatars/0.png new file mode 100644 index 0000000..d806038 Binary files /dev/null and b/static/img/avatars/0.png differ diff --git a/static/img/avatars/1.png b/static/img/avatars/1.png new file mode 100644 index 0000000..fce503d Binary files /dev/null and b/static/img/avatars/1.png differ diff --git a/static/img/avatars/2.png b/static/img/avatars/2.png new file mode 100644 index 0000000..3a2d9af Binary files /dev/null and b/static/img/avatars/2.png differ diff --git a/static/img/avatars/3.png b/static/img/avatars/3.png new file mode 100644 index 0000000..3a7be24 Binary files /dev/null and b/static/img/avatars/3.png differ diff --git a/static/img/avatars/4.png b/static/img/avatars/4.png new file mode 100644 index 0000000..6308a32 Binary files /dev/null and b/static/img/avatars/4.png differ diff --git a/static/img/avatars/5.png b/static/img/avatars/5.png new file mode 100644 index 0000000..565c883 Binary files /dev/null and b/static/img/avatars/5.png differ diff --git a/static/img/avatars/6.png b/static/img/avatars/6.png new file mode 100644 index 0000000..52915a6 Binary files /dev/null and b/static/img/avatars/6.png differ diff --git a/static/img/avatars/7.png b/static/img/avatars/7.png new file mode 100644 index 0000000..81a23de Binary files /dev/null and b/static/img/avatars/7.png differ diff --git a/static/img/avatars/8.png b/static/img/avatars/8.png new file mode 100644 index 0000000..1016c8f Binary files /dev/null and b/static/img/avatars/8.png differ diff --git a/static/img/avatars/9.png b/static/img/avatars/9.png new file mode 100644 index 0000000..bd86cd5 Binary files /dev/null and b/static/img/avatars/9.png differ