STATUS_NOT_FOUND -> NOT_FOUND

This commit is contained in:
dangered wolf 2022-07-25 13:36:19 -04:00
parent fa1d6670e7
commit 0cb705eb9c
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 2 additions and 1 deletions

View file

@ -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 */

View file

@ -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!');