mirror of
https://github.com/dariusk/rss-to-activitypub.git
synced 2024-11-22 01:09:19 +02:00
Encode URI components for feed with query params
This fixes #10 and fixes #15.
This commit is contained in:
parent
6039a793c4
commit
e0dbc536dc
|
@ -49,7 +49,7 @@
|
|||
// https://bots.tinysubversions.com/api/convert/?feed=https://toomuchnotenough.site/feed.xml&username=tmne
|
||||
function submit() {
|
||||
let domain = document.domain;
|
||||
let feed = document.querySelector('#feed').value;
|
||||
let feed = encodeURIComponent(document.querySelector('#feed').value);
|
||||
let username = document.querySelector('#username').value;
|
||||
let out = document.querySelector('#out');
|
||||
fetch(`/api/convert/?feed=${feed}&username=${username}`)
|
||||
|
|
Loading…
Reference in New Issue