Revert name containing [Mirror], as there is a limit on length and we cannot fit everything
This commit is contained in:
parent
84b9859579
commit
ab9eceb174
|
@ -282,8 +282,6 @@ def pixelfed_setpic(acc_id, pic_url, count=0):
|
|||
|
||||
def pixelfed_setinfo(acc_id, bio, website, count=0):
|
||||
accdata = db_get('accounts', acc_id)
|
||||
|
||||
name = accdata['name'] + ' [Mirror]'
|
||||
if count == 0:
|
||||
bio = 'Mirrored from Instagram: instagram.com/{} | {}'.format(acc_id, bio)
|
||||
|
||||
|
@ -294,7 +292,7 @@ def pixelfed_setinfo(acc_id, bio, website, count=0):
|
|||
_, _token = pixelfed_token_url('/settings/home', accdata['cookie'])
|
||||
r = requests.post( 'https://'+config()['instance']+'/settings/home',\
|
||||
data={
|
||||
'_token': _token, 'name': name,
|
||||
'_token': _token, 'name': accdata['name'],
|
||||
'website': website, 'bio': bio, 'language': 'en'
|
||||
},
|
||||
cookies=accdata['cookie']
|
||||
|
|
Loading…
Reference in New Issue