Handle no response / id not found for comments
This commit is contained in:
3 files changed
+3
No files matched your search
@@ -31,6 +31,7 @@ export const handler = async (handler: Context) => {
|
||||
)
|
||||
|
||||
const responseText = request.data as string
|
||||
if (responseText == '#0:0:10') return jsonResponse([])
|
||||
const responseSplit = responseText
|
||||
.split('|')
|
||||
.map(x => x.split(':'))
|
||||
|
||||
@@ -28,6 +28,7 @@ export const handler = async (handler: Context) => {
|
||||
)
|
||||
|
||||
const responseText = request.data as string
|
||||
if (responseText == '-1') return jsonResponse([])
|
||||
const responseSplit = responseText
|
||||
.split('|')
|
||||
.map(x => x.split(':'))
|
||||
|
||||
@@ -34,6 +34,7 @@ export const handler = async (handler: Context) => {
|
||||
)
|
||||
|
||||
const responseText = request.data as string
|
||||
if (responseText == '#0:0:10') return jsonResponse([])
|
||||
const responseSplit = responseText
|
||||
.split('|')
|
||||
.map(x => x.split(':'))
|
||||
|
||||
Reference in new issue
Block a user