Thomas Lynch
c6f8c0939e
add more unit tests to helpers/posting
2 years ago
Thomas Lynch
a28afef5a9
add jest for testing
...
patch formatSize to cap to max units of TB
add unit test for formatSize as an example
add test for posting a simple thread to the docker
2 years ago
Thomas Lynch
ef3c38bf55
make "Manage" navbar link go to the current page in modview, instead of defaulting to reports
...
dont manage when already in modview
2 years ago
Thomas Lynch
7cee1f14da
fix regression with moveposts and deleteposts when running markdown again for quotes
...
small change to diceroll, just use bind, no need to return the function like that
2 years ago
Thomas Lynch
74c47c7f8a
dnsbl/bypass fix
2 years ago
Thomas Lynch
e34cb02686
set req.cookie.expires to DAY manually during sessionrefresh, to be approx the same as the rolling 1 day expiry.
...
since sessionrefresh is called infrequently, it shouldnt have a performance problem and will keep the expires of the session up-to-date for the sessions page to be more accurate.
close #437
2 years ago
Thomas Lynch
c5ae6aa77f
remove unnecessary link now blockbypass shows normal popup/page
2 years ago
Thomas Lynch
7b784283f8
tldr dnsbl and bypass sucks cock
2 years ago
some random guy
b5caeee7fc
Fix board settings save with empty custom css
...
`empty_string && something` is empty string, which fails the `=== false` check
in checkSchema.
3 years ago
Thomas Lynch
f2b4ec2dd2
ability to show your login sessions, ref #353
3 years ago
Thomas Lynch
92c504e59c
rename ip.single -> ip.cloak
3 years ago
Thomas Lynch
8b4a793d5a
initial roles data to gulpfile, and migration
3 years ago
Thomas Lynch
00da66f95e
dont destructure roles, access it normally so load() callback will update them properly
...
and rename agian, why do i suck at naming stuff lol
3 years ago
Thomas Lynch
28b441a26a
bugfix, typo/missing import
3 years ago
Thomas Lynch
10cb2bdd77
no need to destructure that
3 years ago
Thomas Lynch
e511c67efa
Make roles update on edits and fix map imports, so the role names show correctly after edt
3 years ago
Thomas Lynch
993924a5f2
Start making roles editable ref #377
...
permtemplates are now roles.
They are in the db and can be edited.
Still have to do a few things like the migration, gulpfile and some small details.
3 years ago
Thomas Lynch
17c9d098a5
not make the length different for ipv4/6 cloaks
3 years ago
Thomas Lynch
78f56b4be0
various bugfixes ref #377
3 years ago
Thomas Lynch
0fe3983d5f
apply template to user accounts ref #377
3 years ago
Thomas Lynch
159e67b430
ref #426 ip "cloaking"
...
still todo migration
"ips" will make more sense for staff now
qrange/hrange no longer need to be stored
bypass still work like before. will have .BP suffix, normal ips are .IP
filtering and stuff still works
bans page will now show .*'s in the cloaked view for range bans
in future version, this allows (even for those who cant see raw ips):
- modlog, bans, post hisory filters including per-range
- directly input ips/range cloak to ban, without selecting a post
- upgrading existing bans from single to ranges
3 years ago
Thomas Lynch
8bd41eabd0
ref #377 "template names", else "Custom" in accounts/staff table
3 years ago
Thomas Lynch
d1f9c78258
ref #377 , the fun begins
...
still a few things to do, see TODO (heh)
mostly working how i imagined, with a few quirks.
pretty happy with it.
3 years ago
Thomas Lynch
ecab3b4131
Option to hide .post-data of posts marked as "deleted"
...
make it a global setting, add to the settings modal, make it export/import properly, etc
bugfix includeChildren for settings diff, because some gulp tasks were not being run when needed
3 years ago
Thomas Lynch
3b5eb29b02
switch to updated scoped express-fileupload
3 years ago
Thomas Lynch
60cc35b389
block bypass assistance for users with SzPD
3 years ago
Thomas Lynch
4f5e996cc6
actually, i think this is all it needs close #421
3 years ago
Thomas Lynch
38eb1a9676
actually, that should be it... close #421
3 years ago
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
31821fdc50
imghash doesnt support video it seems
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