diff options
author | 2020-06-23 18:23:49 +0000 | |
---|---|---|
committer | 2020-06-23 18:23:49 +0000 | |
commit | 007858408813f6c4d452e0223868b436e141af24 (patch) | |
tree | 168caa55c8b8f86a6baf4cb221d66a4d1d6efdea | |
parent | Fix empty dates (diff) | |
download | archives-007858408813f6c4d452e0223868b436e141af24.tar.gz archives-007858408813f6c4d452e0223868b436e141af24.tar.bz2 archives-007858408813f6c4d452e0223868b436e141af24.zip |
Show Author email if name is not available
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r-- | pkg/models/message.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/models/message.go b/pkg/models/message.go index 89d7d73..25b2966 100644 --- a/pkg/models/message.go +++ b/pkg/models/message.go @@ -74,6 +74,9 @@ func (m Message) GetAuthorName() string { if err != nil { return "" } + if addr.Name == "" { + return addr.Address + } return addr.Name } |