mirror of https://gitlab.com/bashrc2/epicyon
Invert logic
parent
c715085883
commit
dc6dc2c7ef
|
@ -1079,13 +1079,12 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
|
||||||
as_header = {
|
as_header = {
|
||||||
'Accept': 'application/activity+json; profile="' + profile_str + '"'
|
'Accept': 'application/activity+json; profile="' + profile_str + '"'
|
||||||
}
|
}
|
||||||
debug = True
|
|
||||||
hashtag_json = \
|
hashtag_json = \
|
||||||
get_json(None,
|
get_json(signing_priv_key_pem,
|
||||||
session, hashtag_url, as_header, None, debug,
|
session, hashtag_url, as_header, None, debug,
|
||||||
__version__, http_prefix, domain)
|
__version__, http_prefix, domain)
|
||||||
lines = []
|
lines = []
|
||||||
if not hashtag_json:
|
if hashtag_json:
|
||||||
if 'orderedItems' in hashtag_json:
|
if 'orderedItems' in hashtag_json:
|
||||||
lines = hashtag_json['orderedItems']
|
lines = hashtag_json['orderedItems']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue