()
| 258 | } |
| 259 | |
| 260 | func (u User) IsBot() bool { |
| 261 | // copied from api/queries_issue.go |
| 262 | // would ideally be shared, but it would require coordinating a "user" |
| 263 | // abstraction in a bunch of places. |
| 264 | return u.ID == "" |
| 265 | } |
| 266 | |
| 267 | func (u User) ExportData() map[string]any { |
| 268 | isBot := u.IsBot() |