fba.update_last_seen(timestamp, blocker, blocked, block_level)
fba.conn.commit()
+
# Reasons
if "mrf_simple_info" in federation:
+ print("DEBUG: Found mrf_simple_info:", blocker)
for block_level, info in (
{**federation["mrf_simple_info"],
**(federation["quarantined_instances_info"]
if "quarantined_instances_info" in federation
else {})}
).items():
+ print("DEBUG: block_level, info.items():", block_level, len(info.items()))
for blocked, reason in info.items():
+ print("DEBUG: BEFORE blocked:", blocked)
blocked = fba.tidyup(blocked)
+ print("DEBUG: AFTER blocked:", blocked)
if blocked == "":
print("WARNING: blocked is empty after fba.tidyup():", blocker, block_level)
if searchres != None:
blocked = searchres[0]
+ print("DEBUG: Updating block reason:", blocker, blocked, reason["reason"])
fba.update_block_reason(reason["reason"], blocker, blocked, block_level)
for entry in blockdict:
if entry["blocked"] == blocked:
+ print("DEBUG: Updating entry reason:", blocked)
entry["reason"] = reason["reason"]
fba.conn.commit()
fba.update_last_seen(timestamp, blocker, blocked if blocked.count("*") <= 1 else blocked_hash, block_level)
if reason != '':
+ print("DEBUG: Updating block reason:", blocker, blocked, reason)
fba.update_block_reason(reason, blocker, blocked if blocked.count("*") <= 1 else blocked_hash, block_level)
fba.conn.commit()
fba.update_last_seen(timestamp, blocker, blocked, block_level)
if reason != '':
+ print("DEBUG: Updating block reason:", blocker, blocked, reason)
fba.update_block_reason(reason, blocker, blocked, block_level)
fba.conn.commit()
if "public_comment" in peer:
reason = peer["public_comment"]
+ print("DEBUG: Updating block reason:", blocker, blocked, reason)
fba.update_block_reason(reason, blocker, blocked, "reject")
for entry in blockdict:
if entry["blocked"] == blocked:
entry["reason"] = reason
+
fba.conn.commit()
except Exception as e:
print("error:", e, blocker, software)