mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-01-09 04:42:35 +01:00
ignore urls starting with /r/
This commit is contained in:
parent
d7c1d88ef4
commit
dbe86258d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user