kopia lustrzana https://github.com/halcy/Mastodon.py
fix(polls): prevent dynamic changes to `poll_params`
rodzic
02dd7967cb
commit
e3a16f4fd5
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue