fix(polls): prevent dynamic changes to `poll_params`

pull/389/head
Konano 2024-11-22 18:17:09 +08:00
rodzic 02dd7967cb
commit e3a16f4fd5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 93686B78EE43A65A
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -56,6 +56,6 @@ class Mastodon(Internals):
Set multiple to True to allow people to choose more than one answer. Set
hide_totals to True to hide the results of the poll until it has expired.
"""
poll_params = locals()
poll_params = locals().copy()
del poll_params["self"]
return poll_params