From b3be664b2b4e0c252f5ad73eab0897ee9a5b9249 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 Dec 2021 07:56:49 -0500 Subject: [PATCH] fix typo --- mastodon/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/api.py b/mastodon/api.py index d00fb6d2..4442c4df 100644 --- a/mastodon/api.py +++ b/mastodon/api.py @@ -207,7 +207,7 @@ def get_related_acct_list(site, token, api): response = get(url, headers={'User-Agent': 'NeoDB/1.0', 'Authorization': f'Bearer {token}'}) url = None if response.status_code == 200: - results.extend(map(lambda u: (u['acct'] if u['acct'].find('@') != -1 else u['acct'] + site) if 'acct' in u else u, response.json())) + results.extend(map(lambda u: (u['acct'] if u['acct'].find('@') != -1 else u['acct'] + '@' + site) if 'acct' in u else u, response.json())) if 'Link' in response.headers: for ls in response.headers['Link'].split(','): li = ls.strip().split(';')