Merge pull request #389 from Konano/patch-1

fix: prevent dynamic changes to keyword_args/poll_params
pull/391/head
Lorenz Diener 2024-12-01 15:01:24 +02:00 zatwierdzone przez GitHub
commit 6715ff3ebd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 2 dodań i 2 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 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. 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"] del poll_params["self"]
return poll_params return poll_params

Wyświetl plik

@ -332,7 +332,7 @@ class Mastodon(Internals):
are replying to, removing every other mentioned user from the are replying to, removing every other mentioned user from the
conversation. conversation.
""" """
keyword_args = locals() keyword_args = locals().copy()
del keyword_args["self"] del keyword_args["self"]
del keyword_args["to_status"] del keyword_args["to_status"]
del keyword_args["untag"] del keyword_args["untag"]