Temporarily disable the fetch_instance_follows call
This commit is contained in:
parent
5388beeb86
commit
a85e1324a5
|
@ -0,0 +1 @@
|
||||||
|
jeff@hyperion.12194:1699986326
|
|
@ -697,16 +697,17 @@ def check_followed_severity(host: str, token: str, domain: str,
|
||||||
if severity <= max_followed_severity:
|
if severity <= max_followed_severity:
|
||||||
return severity
|
return severity
|
||||||
|
|
||||||
|
# TODO this is not supported on Misskey
|
||||||
# If the instance has accounts that follow people on the to-be-blocked domain,
|
# If the instance has accounts that follow people on the to-be-blocked domain,
|
||||||
# limit the maximum severity to the configured `max_followed_severity`.
|
# limit the maximum severity to the configured `max_followed_severity`.
|
||||||
log.debug("checking for instance follows...")
|
# log.debug("checking for instance follows...")
|
||||||
follows = fetch_instance_follows(token, host, domain, scheme)
|
# follows = fetch_instance_follows(token, host, domain, scheme)
|
||||||
time.sleep(API_CALL_DELAY)
|
# time.sleep(API_CALL_DELAY)
|
||||||
if follows > 0:
|
# if follows > 0:
|
||||||
log.debug(f"Instance {host} has {follows} followers of accounts at {domain}.")
|
# log.debug(f"Instance {host} has {follows} followers of accounts at {domain}.")
|
||||||
if severity > max_followed_severity:
|
# if severity > max_followed_severity:
|
||||||
log.warning(f"Instance {host} has {follows} followers of accounts at {domain}. Limiting block severity to {max_followed_severity}.")
|
# log.warning(f"Instance {host} has {follows} followers of accounts at {domain}. Limiting block severity to {max_followed_severity}.")
|
||||||
return max_followed_severity
|
# return max_followed_severity
|
||||||
return severity
|
return severity
|
||||||
|
|
||||||
def is_change_needed(oldblock: dict, newblock: dict, import_fields: list):
|
def is_change_needed(oldblock: dict, newblock: dict, import_fields: list):
|
||||||
|
|
Loading…
Reference in New Issue