From 228267524a0677dfe9e28b7897c3b98a94dade21 Mon Sep 17 00:00:00 2001 From: Bofh Date: Mon, 8 Feb 2021 12:41:19 +0100 Subject: [PATCH] Revert "Revert name containing [Mirror], as there is a limit on length and we cannot fit everything" This reverts commit ab9eceb1745fcb11e8acc08b6654b9be10c804a6. --- igmirror.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/igmirror.py b/igmirror.py index f5fdcf6..53f3063 100644 --- a/igmirror.py +++ b/igmirror.py @@ -282,6 +282,8 @@ 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) @@ -292,7 +294,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': accdata['name'], + '_token': _token, 'name': name, 'website': website, 'bio': bio, 'language': 'en' }, cookies=accdata['cookie']