fix anonymous author posts

This commit is contained in:
2020-07-25 19:45:42 -04:00
parent 7f81a47143
commit d26bb34800

View File

@ -91,7 +91,7 @@ func (db *database) getAvatar(identhash string) image.Image {
func (db *database) nameFromChanIdentHash(s string) string {
for _, channel := range db.Channels {
if channel.IdentHash == s {
if s == "" {
if channel.Name == "" {
return "Anonymous"
}
return channel.Name