1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic posting done

Except hidden text, layout and sensitive attachments
This commit is contained in:
Zhiyuan Zheng
2020-11-19 22:45:26 +01:00
parent c0d7f379b3
commit aecb5c5b3d
7 changed files with 271 additions and 8 deletions

View File

@ -41,8 +41,9 @@ const client = async ({
// } catch (error) {
// return Promise.reject('ky error: ' + error.json())
// }
console.log('upload done')
if (response.ok) {
console.log('returning ok')
return Promise.resolve({
headers: response.headers,
body: await response.json()