fixed a bug with the curiouscat profile pictures
This commit is contained in:
parent
3933078fd9
commit
d7c348e594
1 changed files with 1 additions and 1 deletions
2
web.py
2
web.py
|
@ -69,7 +69,7 @@ def home():
|
|||
client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], access_token=session['secret'], api_base_url=session['instance'])
|
||||
|
||||
session['avi'] = client.account_verify_credentials()['avatar']
|
||||
if session['cc'] != "None":
|
||||
if session['cc'] != "None" and session['cc'] != None:
|
||||
#update cc avi too
|
||||
r = requests.get("https://curiouscat.me/api/v2/profile?username={}".format(session['cc']))
|
||||
j = r.json()
|
||||
|
|
Loading…
Reference in a new issue