1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-26 01:37:28 +00:00

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

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 shortcode = fill[0]
const settings = getSettings(req) const settings = getSettings(req)