ignore urls starting with /r/

This commit is contained in:
teddit 2021-03-21 18:32:13 +01:00
parent d7c1d88ef4
commit dbe86258d7
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ module.exports = function(request, fs) {
}
this.isGif = (url) => {
if(url.startsWith('/r/'))
return false
try {
url = new URL(url)
let pathname = url.pathname