mirror of
https://github.com/KoalaSat/nostros.git
synced 2024-09-29 22:50:43 +00:00
Temporally disable image services
This commit is contained in:
parent
2f23459dbd
commit
8ab13a0b6a
@ -11,18 +11,18 @@ export const imageHostingServices: Record<
|
||||
sendFunction: (fileUri: string, fileType: string, filename: string) => Promise<string | null>
|
||||
}
|
||||
> = {
|
||||
voidCat: {
|
||||
uri: 'https://void.cat',
|
||||
uploadUrl: 'https://void.cat/upload',
|
||||
donation: 'https://void.cat/donate',
|
||||
sendFunction: voidCatUpload,
|
||||
},
|
||||
nostrBuild: {
|
||||
uri: 'https://nostr.build',
|
||||
uploadUrl: 'https://nostr.build/upload.php',
|
||||
donation: 'https://nostr.build',
|
||||
sendFunction: nostrBuildUpload,
|
||||
},
|
||||
// voidCat: {
|
||||
// uri: 'https://void.cat',
|
||||
// uploadUrl: 'https://void.cat/upload',
|
||||
// donation: 'https://void.cat/donate',
|
||||
// sendFunction: voidCatUpload,
|
||||
// },
|
||||
// nostrBuild: {
|
||||
// uri: 'https://nostr.build',
|
||||
// uploadUrl: 'https://nostr.build/upload.php',
|
||||
// donation: 'https://nostr.build',
|
||||
// sendFunction: nostrBuildUpload,
|
||||
// },
|
||||
nostrcheck: {
|
||||
uri: 'https://nostrcheck.me',
|
||||
uploadUrl: 'https://nostrcheck.me/api/media.php',
|
||||
|
@ -26,7 +26,8 @@ export const nostrBuildUpload: (
|
||||
const imageUrl: string = response.data.match(regExp)[0].slice(0, -4)
|
||||
resolve(imageUrl)
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((e) => {
|
||||
console.log(e)
|
||||
reject(new Error('Error uploading image'))
|
||||
})
|
||||
})
|
||||
|
@ -32,7 +32,8 @@ export const voidCatUpload: (
|
||||
reject(new Error('Error uploading image'))
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((e) => {
|
||||
console.log(e)
|
||||
reject(new Error('Error uploading image'))
|
||||
})
|
||||
})
|
||||
|
@ -27,7 +27,8 @@ export const nostrcheckUpload: (
|
||||
const imageUrl: string = response.data.URL
|
||||
resolve(imageUrl)
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((e) => {
|
||||
console.log(e)
|
||||
reject(new Error('Error uploading image'))
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user