mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-02 02:43:16 -06:00
lint
This commit is contained in:
parent
2c24409d50
commit
2b5ff69db3
1 changed files with 6 additions and 8 deletions
|
|
@ -299,21 +299,21 @@ func StatusHash(s *gtsmodel.Status) string {
|
|||
hash := xxhash.New()
|
||||
|
||||
// Content warning / title.
|
||||
hash.WriteString(s.ContentWarning)
|
||||
hash.WriteString(s.ContentWarning) // nolint:errcheck
|
||||
|
||||
// Status content.
|
||||
hash.WriteString(s.Content)
|
||||
hash.WriteString(s.Content) // nolint:errcheck
|
||||
|
||||
// Media IDs + descriptions.
|
||||
for _, attachment := range s.Attachments {
|
||||
hash.WriteString(attachment.ID)
|
||||
hash.WriteString(attachment.Description)
|
||||
hash.WriteString(attachment.ID) // nolint:errcheck
|
||||
hash.WriteString(attachment.Description) // nolint:errcheck
|
||||
}
|
||||
|
||||
// Poll options.
|
||||
if s.Poll != nil {
|
||||
for _, option := range s.Poll.Options {
|
||||
hash.WriteString(option)
|
||||
hash.WriteString(option) // nolint:errcheck
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -354,9 +354,7 @@ func filterableText(s *gtsmodel.Status) string {
|
|||
|
||||
// Poll options.
|
||||
if s.Poll != nil {
|
||||
for _, option := range s.Poll.Options {
|
||||
fields = append(fields, option)
|
||||
}
|
||||
fields = append(fields, s.Poll.Options...)
|
||||
}
|
||||
|
||||
return strings.Join(fields, " ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue