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

Main updates

This commit is contained in:
Zhiyuan Zheng
2021-08-22 00:17:24 +02:00
parent 74359a9592
commit 44ec3e5b87
5 changed files with 1600 additions and 2771 deletions

View File

@ -28,7 +28,7 @@ const apiTooot = async <T = unknown>({
body,
sentry = false
}: Params): Promise<{ body: T }> => {
const key = Constants.manifest.extra?.toootApiKey
const key = Constants.manifest?.extra?.toootApiKey
console.log(
ctx.bgGreen.bold(' API tooot ') +
@ -49,7 +49,7 @@ const apiTooot = async <T = unknown>({
headers: {
...(key && { 'x-tooot-key': key }),
'Content-Type': 'application/json',
'User-Agent': `tooot/${Constants.manifest.version}`,
'User-Agent': `tooot/${Constants.manifest?.version}`,
Accept: '*/*',
...headers
},