mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-07 06:31:49 +02:00
Fix poll issue
This commit is contained in:
parent
6817607955
commit
6a443adf08
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ class Mastodon_api
|
||||||
if (isset($parameters['body']['poll']['options'])) {
|
if (isset($parameters['body']['poll']['options'])) {
|
||||||
$url .= strpos($url, '?') !== false ? '' : '?';
|
$url .= strpos($url, '?') !== false ? '' : '?';
|
||||||
foreach ($parameters['body']['poll']['options'] as $key => $value) {
|
foreach ($parameters['body']['poll']['options'] as $key => $value) {
|
||||||
$url .= 'poll[options][]=' . $value . '&';
|
$url .= 'poll[options][]=' . urlencode($value) . '&';
|
||||||
}
|
}
|
||||||
$url = substr($url, 0, -1);
|
$url = substr($url, 0, -1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue