checking for crawling boolean
This commit is contained in:
parent
d57dd47c56
commit
003de16e2b
@ -149,6 +149,9 @@ func PollMastodonPleroma(endpoint string, reportPostChan chan ReportPost) {
|
|||||||
if newpost.Id > min_id {
|
if newpost.Id > min_id {
|
||||||
min_id = newpost.Id
|
min_id = newpost.Id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only done if we are crawling
|
||||||
|
if settings.Crawl == true {
|
||||||
newinstance := newpost.Account.Acct[at_sign+1:]
|
newinstance := newpost.Account.Acct[at_sign+1:]
|
||||||
ri_mutex.Lock()
|
ri_mutex.Lock()
|
||||||
_, exists := runninginstances[newinstance]
|
_, exists := runninginstances[newinstance]
|
||||||
@ -160,6 +163,7 @@ func PollMastodonPleroma(endpoint string, reportPostChan chan ReportPost) {
|
|||||||
|
|
||||||
ri_mutex.Unlock()
|
ri_mutex.Unlock()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
time.Sleep(time.Second * 10)
|
time.Sleep(time.Second * 10)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user