DisplayName returns a user-friendly name via actorDisplayName.
()
| 285 | |
| 286 | // DisplayName returns a user-friendly name via actorDisplayName. |
| 287 | func (a Author) DisplayName() string { |
| 288 | return actorDisplayName("", a.Login, a.Name) |
| 289 | } |
| 290 | |
| 291 | func (author Author) MarshalJSON() ([]byte, error) { |
| 292 | if author.ID == "" { |
nothing calls this directly
no test coverage detected