mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 16:43:01 -06:00
first steps on importing blocklists
This commit is contained in:
parent
d389e7b150
commit
8285d09da5
14 changed files with 232 additions and 41 deletions
|
|
@ -42,8 +42,8 @@ func (ps *postgresService) GetDomainCountForInstance(domain string) (int, error)
|
|||
|
||||
if domain == ps.config.Host {
|
||||
// if the domain is *this* domain, just count other instances it knows about
|
||||
// TODO: exclude domains that are blocked or silenced
|
||||
q = q.Where("domain != ?", domain)
|
||||
// exclude domains that are blocked
|
||||
q = q.Where("domain != ?", domain).Where("? IS NULL", pg.Ident("suspended_at"))
|
||||
} else {
|
||||
// TODO: implement federated domain counting properly for remote domains
|
||||
return 0, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue