Queer European MD passionate about IT
Browse Source

When admin `A` requests profile picture of user `B`, send B's picture and not A's.

Davte 1 year ago
parent
commit
fc486c60ce
2 changed files with 3 additions and 3 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 2 2
      davtelepot/authorization.py

+ 1 - 1
davtelepot/__init__.py

@@ -11,7 +11,7 @@ __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
 __license__ = "GNU General Public License v3.0"
-__version__ = "2.8.6"
+__version__ = "2.8.7"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"
 

+ 2 - 2
davtelepot/authorization.py

@@ -617,7 +617,7 @@ async def _authorization_button(bot: Bot,
                                          language=language),
                     prefix='auth:///',
                     delimiter='|',
-                    data=['picture', user_record['id']]
+                    data=['picture', other_user_record['id']]
                 )
             )
         if len(arguments) > 2:
@@ -711,7 +711,7 @@ async def _authorization_button(bot: Bot,
                                              language=language),
                         prefix='auth:///',
                         delimiter='|',
-                        data=['picture', user_record['id']]
+                        data=['picture', other_user_record['id']]
                     )
                 )
             reply_markup = make_inline_keyboard(buttons, 1)