oops
This commit is contained in:
parent
0e941dca0a
commit
5569c0e94d
1 changed files with 0 additions and 12 deletions
|
|
@ -6,7 +6,6 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -219,17 +218,6 @@ func (s *StatusGetter) ActualMention(n Notification) (string, error) {
|
|||
// These are split up by endpoint since it is along that boundary we parallelize
|
||||
// work
|
||||
|
||||
var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
|
||||
|
||||
func findNextPage(resp *http.Response) (string, bool) {
|
||||
for _, m := range linkRE.FindAllStringSubmatch(resp.Header.Get("Link"), -1) {
|
||||
if len(m) > 2 && m[2] == "next" {
|
||||
return m[1], true
|
||||
}
|
||||
}
|
||||
return "", false
|
||||
}
|
||||
|
||||
// Populate .Mentions
|
||||
func (s *StatusGetter) LoadNotifications() error {
|
||||
perPage := 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue