Add alias paths /tv/, /igtv/, /reel

This commit is contained in:
Cadence Ember 2020-08-31 20:30:31 +12:00
parent 9b902d1149
commit c6ea5ae8e4
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ module.exports = [
}
},
{
route: `/p/(${constants.external.shortcode_regex})`, methods: ["GET"], code: async ({req, fill}) => {
route: `/(?:p|tv|igtv|reel)/(${constants.external.shortcode_regex})`, methods: ["GET"], code: async ({req, fill}) => {
const shortcode = fill[0]
const settings = getSettings(req)