mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 18:10:56 +01:00
STATUS_NOT_FOUND -> NOT_FOUND
This commit is contained in:
parent
fa1d6670e7
commit
0cb705eb9c
2 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,7 @@ export const statueAPI = async (
|
|||
|
||||
/* {"errors":[{"code":34,"message":"Sorry, that page does not exist."}]} */
|
||||
if (conversation.errors?.[0]?.code === 34) {
|
||||
return { code: 404, message: 'STATUS_NOT_FOUND' };
|
||||
return { code: 404, message: 'NOT_FOUND' };
|
||||
}
|
||||
|
||||
/* Tweets object is completely missing, smells like API failure */
|
||||
|
|
|
@ -98,6 +98,7 @@ router.get('/:prefix?/:handle/statuses/:id/photos/:mediaNumber', statusRequest);
|
|||
router.get('/:prefix?/:handle/statuses/:id/video/:mediaNumber', statusRequest);
|
||||
router.get('/:prefix?/:handle/status/:id/:language', statusRequest);
|
||||
router.get('/:prefix?/:handle/statuses/:id/:language', statusRequest);
|
||||
router.get('/status/:id', statusRequest);
|
||||
|
||||
router.get('/owoembed', async (request: Request) => {
|
||||
console.log('oembed hit!');
|
||||
|
|
Loading…
Add table
Reference in a new issue