Invert logic

merge-requests/30/head
Bob Mottram 2023-01-05 23:29:12 +00:00
parent c715085883
commit dc6dc2c7ef
1 changed files with 2 additions and 3 deletions

View File

@ -1079,13 +1079,12 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
as_header = {
'Accept': 'application/activity+json; profile="' + profile_str + '"'
}
debug = True
hashtag_json = \
get_json(None,
get_json(signing_priv_key_pem,
session, hashtag_url, as_header, None, debug,
__version__, http_prefix, domain)
lines = []
if not hashtag_json:
if hashtag_json:
if 'orderedItems' in hashtag_json:
lines = hashtag_json['orderedItems']
else: