mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -05:00
ignore urls starting with /r/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user