mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
Fixed #613: Don't pull nodeinfo from blocked servers!
This commit is contained in:
parent
759d5ac052
commit
aac75dd4c3
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ class DomainStates(StateGraph):
|
|||
|
||||
@classmethod
|
||||
def handle_outdated(cls, instance: "Domain"):
|
||||
# Don't talk to servers we've blocked
|
||||
if instance.blocked:
|
||||
return cls.updated
|
||||
# Pull their nodeinfo URI
|
||||
info = instance.fetch_nodeinfo()
|
||||
if info:
|
||||
instance.nodeinfo = info.dict()
|
||||
|
|
Loading…
Reference in a new issue