Fix lint errors
This commit is contained in:
parent
eafdbf5ffb
commit
fae23cc243
@ -2,9 +2,9 @@ package scraper
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (api API) GetNotifications(cursor string) (TweetResponse, error) {
|
func (api API) GetNotifications(cursor string) (TweetResponse, error) {
|
||||||
@ -97,9 +97,8 @@ func ParseSingleNotification(n APINotification) Notification {
|
|||||||
ret.Type = 2
|
ret.Type = 2
|
||||||
} else if strings.Contains(n.Message.Text, "There was a login to your account") {
|
} else if strings.Contains(n.Message.Text, "There was a login to your account") {
|
||||||
ret.Type = 9
|
ret.Type = 9
|
||||||
} else {
|
|
||||||
// TODO: more types?
|
|
||||||
}
|
}
|
||||||
|
// TODO: more types?
|
||||||
|
|
||||||
ret.SentAt = TimestampFromUnixMilli(n.TimestampMs)
|
ret.SentAt = TimestampFromUnixMilli(n.TimestampMs)
|
||||||
// TODO: caller should set ret.UserID
|
// TODO: caller should set ret.UserID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user