Shorten the IG url as it is not clickable either + bug fix
This commit is contained in:
parent
5e1631286d
commit
e888ee88da
|
@ -282,10 +282,9 @@ def pixelfed_setpic(acc_id, pic_url, count=0):
|
||||||
def pixelfed_setinfo(acc_id, bio, website, count=0):
|
def pixelfed_setinfo(acc_id, bio, website, count=0):
|
||||||
accdata = db_get('accounts', acc_id)
|
accdata = db_get('accounts', acc_id)
|
||||||
|
|
||||||
name = accdata['name']
|
|
||||||
if count == 0:
|
|
||||||
bio = 'Mirrored from Instagram: https://www.instagram.com/{} | {}'.format(acc_id, bio)
|
|
||||||
name = accdata['name'] + ' [Mirror]'
|
name = accdata['name'] + ' [Mirror]'
|
||||||
|
if count == 0:
|
||||||
|
bio = 'Mirrored from Instagram: instagram.com/{} | {}'.format(acc_id, bio)
|
||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
pixelfed_login(acc_id)
|
pixelfed_login(acc_id)
|
||||||
|
@ -294,7 +293,7 @@ def pixelfed_setinfo(acc_id, bio, website, count=0):
|
||||||
_, _token = pixelfed_token_url('/settings/home', accdata['cookie'])
|
_, _token = pixelfed_token_url('/settings/home', accdata['cookie'])
|
||||||
r = requests.post( 'https://'+config()['instance']+'/settings/home',\
|
r = requests.post( 'https://'+config()['instance']+'/settings/home',\
|
||||||
data={
|
data={
|
||||||
'_token': _token, 'name': accdata['name'],
|
'_token': _token, 'name': name,
|
||||||
'website': website, 'bio': bio, 'language': 'en'
|
'website': website, 'bio': bio, 'language': 'en'
|
||||||
},
|
},
|
||||||
cookies=accdata['cookie']
|
cookies=accdata['cookie']
|
||||||
|
|
Loading…
Reference in New Issue