Thomas Lynch
7642fd1dfb
close #419
3 years ago
Thomas Lynch
8aecabc905
make global setting for languages only apply to auto-detection, as intended
3 years ago
Thomas Lynch
5768591742
imghash doesnt support video it seems
3 years ago
Thomas Lynch
61de85937a
try with a newer commit of express-fileupload tweaked to not allow missing file extensions
...
and remove some path.extname() stuff since that wouldnt be necessary anymore
checkRealMimeTypes can overwrite with correct one if enabled
3 years ago
Thomas Lynch
bbd06b31af
damn spaniards
3 years ago
Thomas Lynch
825c5e7d61
dont use useless wrapped dep, just use imghash on its own
3 years ago
l29utp0
079f3d2437
typo, that will be $1000
3 years ago
Thomas Lynch
d742486c06
nvm dont want to fuck my ass with EJS modules
3 years ago
Thomas Lynch
024a47a286
update board settings to do some stuff similar to global
...
make global use the *correct* mapped tasks
refactor the helpers
remove some debug statements
close #329
3 years ago
Thomas Lynch
b08ab78c03
npm 8 package-lock, update some package versions, change some require()s to import()s, some package breaking changes might need reviewing
3 years ago
Thomas Lynch
a867a6a310
Start on making global settings changes less lazy reference #329
3 years ago
Thomas Lynch
d0f3b5e73b
slight fix markdown behaviour; trim leading empty lines leaving leading whitespace on first non-empty line
3 years ago
Thomas Lynch
fb6c0fa52f
custom links for archive/reverse, close #373
3 years ago
some random guy
7df2b8c12e
processip: fix `Ip parse failed Error: cannot print non-v4 address as a v4-mapped address` errors with ipv6 mapped ipv4 addresses
3 years ago
Thomas Lynch
984d9428f5
make accessible the fuzzy hashes to filter ref #371
3 years ago
Thomas Lynch
70a45a9380
ref #324
3 years ago
Thomas Lynch
0306ef8bbe
useless name constraint ref #324
3 years ago
Thomas Lynch
d867129559
this is all I wil do close #324
3 years ago
Thomas Lynch
b11d801908
reduce regex steps
3 years ago
Thomas Lynch
6c7e850379
mongo driver change ops no longer available. we only used as boolean nayways so just set to true
3 years ago
Thomas Lynch
b17a83244b
tiny comment fix
3 years ago
Thomas Lynch
6dd7a5c4bc
procesisp make ranges use CIDR notation, so its easier to understand and uses more sensible ranges for ipv6
...
todo: rename every "hrange" and "qrange" with nrabge and brange? narrow/broad? would need to migrate a bunch of existing db shit for bans, posts, etc probably a pain in my ass
and remove a leftover console.log
3 years ago
Thomas Lynch
ca43e94baf
why deal with wikipedia links when you can just add a space 4Head, not like this worked properly to begin with
3 years ago
Thomas Lynch
a93e42d90c
assets as last thing for manage assets page in boards
3 years ago
Thomas Lynch
311a2d7a69
markdown, add fortune as sort of an example for somebody admin only in migration permlevel
3 years ago
Thomas Lynch
070d693969
try link labelling change for on site things, allow / start
3 years ago
Thomas Lynch
06f5a26ce9
allow longer language name in markdown, longest is 14 according to the lib
...
require('highlight.js').listLanguages().map(x => x.length).sort((a, b) => b-a)
> [ 14,...
3 years ago
Thomas Lynch
f606cd186a
change permission setting from number to dropdown with names, thanks some_random_guy
...
and some related css tweak and faq page update
3 years ago
Thomas Lynch
08c83ac4b9
update deprecated highlight.js highlight(), was getting deprecation message.
...
method now has new signature taking options object
3 years ago
Thomas Lynch
a5d1c942b2
fix issue in lowering min/max settings conflict in some situations
...
update settings forms to not allow negatives for some inputs
3 years ago
Thomas Lynch
89a60f1424
move images used for themes to folder, same as code themes from highlight.js
...
update theme list to filter, like code theme list
add some themes linked from "reinchan", with some minor tweaks
update gulpfile
3 years ago
Thomas Lynch
50fa768ee9
form and paramconverter fixes
...
change a bunch of length and number body because of trimming and using existsBody is the 0 checko
3 years ago
Thomas Lynch
5e4c1b197f
fixes to paramconverter, null 0 length trimmed fields, tweak custompage error
3 years ago
Thomas Lynch
4ecab8994f
Better message and "link" added to dynamicResponse for dnsbl if blockbypass is allowed to bypass dnsbl
3 years ago
Thomas Lynch
41f2569d85
permission check fix
3 years ago
Thomas Lynch
50aaf3806a
always allowedarrays captcha (until this needs more defaults)
3 years ago
Thomas Lynch
b10d305952
add 'blocking' prop to schema checks, allow a check in schema to skip the rest when it doesnt match expected value
3 years ago
Thomas Lynch
e8c3cfab8f
remove log
3 years ago
Thomas Lynch
7d2799390d
fix for some video files not able to get first frame thumbnail due to weird format
...
example file https://files.catbox.moe/b7vzs5.mp4
previously if in videothumbnail() if timestamp was 0 the command was like:
ffmpeg -t 0 -i in.mp4 -y -vf scale=-2:250 out.jpg
which would error out with "Could not get frame filename number 2 from pattern 'out.jpg'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename."
seems strange given -t 0, but whatever. so as the error suggests, first frame videothumbnails() call just adds -frames:v 1 to the output args
3 years ago
Thomas Lynch
fa13cd7ce6
rest of #355 , needs testing for every form
3 years ago
Thomas Lynch
42422d3d35
reference #355 changes to paramconverter
...
got the changes to itself done to return the middleware function,
and for most routes i updated them
still TODO the more complex routes, and change them to the refactored schema checking
3 years ago
Thomas Lynch
3eb3ba3a38
remove old comment
3 years ago
Thomas Lynch
289dd11716
remove that restriction on same board cross style quote, it confused some people
3 years ago
Thomas Lynch
75faad7914
hcaptcha site key fix
3 years ago
Thomas Lynch
0c0102ec0c
make referer check work again
4 years ago
Thomas Lynch
b21c84c9c7
make updates to files options actually work
4 years ago
Thomas Lynch
8892f64bad
merge webring db,
...
improve board list sorting and filters
improvelayout of public and global manage board list forms
and add extra homepage stat
4 years ago
Thomas Lynch
0b03b05d7c
add a few missing things for this to globalsettings
4 years ago
Thomas Lynch
163522f02c
playing golf with file middleware helper. came out nice
4 years ago
Thomas Lynch
3d1f2bd016
export country name set
4 years ago