mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-03 11:49:33 -05:00
Merge pull request #1998 from onionshare/mig/fix-moat-again
Go back to expecting moat-bridges after captcha submission
This commit is contained in:
commit
fa5e2380f4
@ -289,7 +289,7 @@ class MoatThread(QtCore.QThread):
|
|||||||
self.bridgedb_error.emit()
|
self.bridgedb_error.emit()
|
||||||
return
|
return
|
||||||
if moat_res["data"][0]["type"] != "moat-challenge":
|
if moat_res["data"][0]["type"] != "moat-challenge":
|
||||||
self.common.log("MoatThread", "run", f"type != moat-challange")
|
self.common.log("MoatThread", "run", f"type != moat-challenge")
|
||||||
self.bridgedb_error.emit()
|
self.bridgedb_error.emit()
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -351,8 +351,8 @@ class MoatThread(QtCore.QThread):
|
|||||||
self.captcha_error.emit(errors)
|
self.captcha_error.emit(errors)
|
||||||
return
|
return
|
||||||
|
|
||||||
if moat_res["data"][0]["type"] != "moat-challenge":
|
if moat_res["data"][0]["type"] != "moat-bridges":
|
||||||
self.common.log("MoatThread", "run", f"type != moat-challenge")
|
self.common.log("MoatThread", "run", f"type != moat-bridges")
|
||||||
self.bridgedb_error.emit()
|
self.bridgedb_error.emit()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user