Add quoting by url / in replies

This commit is contained in:
Alexander Tumin 2025-07-28 11:39:50 +03:00
commit 7aefda4211
18 changed files with 501 additions and 110 deletions

View file

@ -693,7 +693,7 @@ const fetchStatus = ({ id, credentials }) => {
if (data.ok) {
return data
}
throw new Error('Error fetching timeline', data)
throw new Error('Error fetching timeline', { cause: data })
})
.then((data) => data.json())
.then((data) => parseStatus(data))
@ -706,7 +706,7 @@ const fetchStatusSource = ({ id, credentials }) => {
if (data.ok) {
return data
}
throw new Error('Error fetching source', data)
throw new Error('Error fetching source', { cause: data })
})
.then((data) => data.json())
.then((data) => parseSource(data))

View file

@ -383,7 +383,7 @@ export const parseStatus = (data) => {
}
output.summary_raw_html = escapeHtml(data.spoiler_text)
output.external_url = data.url
output.external_url = data.uri || data.url
output.poll = data.poll
if (output.poll) {
output.poll.options = (output.poll.options || []).map((field) => ({