fixed a bug with the curiouscat profile pictures

This commit is contained in:
Lynne Megido 2018-11-12 17:45:54 +10:00
parent 3933078fd9
commit d7c348e594
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

2
web.py
View file

@ -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()