Thomas Lynch
190410cc54
Bugfix issue with tor and renewing bypasses in some situations. Should be fetching *upserted* id from db or just using known ID.
2 years ago
Thomas Lynch
0fc87e752d
make captcha font apply to text AND grid
...
set a new default font which is common on linux, in debian repos, and has the chess characters
remove 24MB font file that came from i dont even remember where
2 years ago
Thomas Lynch
6b437d7159
Dont show replayable option if other files disabled on board
...
Rebuild board pages on file type for image/other changes, to account for tegaki in postform changes
2 years ago
Thomas Lynch
05db1d898a
eslint fix remove debuglogs import, settings.json update is now logged as a render event rather than in debuglogs
2 years ago
Thomas Lynch
cc2eefc477
Bugfix showing correct amount of deleted asset/banner on board, deletedCount->modifiedCount because we are updating board object not deleting a document
2 years ago
Thomas Lynch
9a7053242d
Close #370 optional disable overboard reverse image links
2 years ago
Thomas Lynch
2a48b10054
Fix duplicate key in projectedsettings for board settings, and make custompages jsons get removed on deleting custom page.
...
Close #479 add endpoints for board and global settings.json to api with options that would be useful for a 3rd party app. Add the associated tasks, calls to them in settings.
Small change and add comments in lib/build/render.
2 years ago
Thomas Lynch
641c087ecc
Add public json for modlog list, logs, custompages
...
update the banners task to output json (not just render it), so it can be reached on first pageload
close #491
2 years ago
Thomas Lynch
3cb5e0197a
Revert "Close #480 dont show "register" on login page if not allowed for regular user, since users might reach it clicking "manage" after the login redirect"
...
This reverts commit 9c5dd5efa8
.
2 years ago
Thomas Lynch
35da2a9ff1
Close #478 option to hide banners and [banners] links board setting
2 years ago
Thomas Lynch
fd7fc1adbf
Close #470 ability to renew an existing bypass, which is slightly useful if you allow long living bypasses
2 years ago
Thomas Lynch
9c5dd5efa8
Close #480 dont show "register" on login page if not allowed for regular user, since users might reach it clicking "manage" after the login redirect
2 years ago
Thomas Lynch
9517ec2f05
Allow "other" files in addassets, to allow e.g. fonts
2 years ago
Thomas Lynch
47ab8d22c0
Configurable hot threads max age, update migration, changelog, etc
2 years ago
Thomas Lynch
47083e149b
Fix the anonymizer bypass captcha permission issue (and fix the stupid pre-bypass and postsEarly in general)
2 years ago
Thomas Lynch
3a4737ad8e
Add account permission to bypass captcha ref #435 still TODO fixing it for anonymizers
2 years ago
Thomas Lynch
962481845d
Bugfix double sending headers on return from create model, e.g. if board already exists
2 years ago
Thomas Lynch
06828da6c0
Refactor captcha generators and captcha model
...
Generators changes:
- take captchaoptions as argument, so no longer require config.get or captchas db imports
- return the captcha object (gm instance) and solution (whatever).
The model itself inserts the solution to db, gets captchaid for filename and cookie, and writes the image to disk.
Slightly cleaner imo, and makes the captcha generators more testable without requiring any mocking for DB/config.
2 years ago
Thomas Lynch
c969814f54
First version of grid v2
2 years ago
Thomas Lynch
8f74885ba2
Add noise and paint slider options to grid captcha
2 years ago
Thomas Lynch
3ab0a271c4
Inactive accounts handling schedule, globalsettings for it and migration.
...
Plus the same for abandoned boards handling, just still TODO the schedule.
ref #418
2 years ago
Thomas Lynch
6ec6b32ed5
Change "wave" and "paint" text effect captcha options from toggle to slider
...
Add "noise" text captcha effect slider
Add font lib to get list of system fonts
Add "font" text captcha option
ref #469
2 years ago
Thomas Lynch
c8ebf9a579
Improvement to grid v1 to allow customising, allowing for something like this.
...
-true characters
-false characters
-question text
Make optional (and add additional options for) some filters/effects
-paint
-line
-wave
2 years ago
Thomas Lynch
18ab7d24ee
When strict mime validation is enabled, actually tell the user what the server thinks the mime is in the mismatch error message.
...
note: only for making posts (for now), pending a refactor of some checks that are shared and duplicated between other file upload models e.g. banners/asset
2 years ago
Thomas Lynch
4022999966
Remove or update some no longer relevant todos.
...
re: the captcha one, roundrobin = too fast expiring, sampling expireAfter $gte some time = possible to not get returned a captcha. so stucking with random. been working fine.
2 years ago
Thomas Lynch
d8f2e8292f
add eslint rules
...
no-template-curly-in-string (+find and fix minor bug in redirect)
curly
no-multiple-empty-lines
2 years ago
Thomas Lynch
115679a4de
I guess my comment in lib/post/filteractions was right
...
+update CONTRIBUTING.md
2 years ago
Thomas Lynch
e047782249
eslint lib, migrations, db, models, test, schedules and root dir
2 years ago
Thomas Lynch
ec5eb65aa7
change return of getfilterstrings to object and destructure
2 years ago
Thomas Lynch
0a3515291b
yeah, it was pretty busted
2 years ago
Thomas Lynch
6c9f0a211f
hotfix editing broken filters
...
note: i am dumb and the testing account has BYPASS_FILTERS so what i broke in changing filters went unnoticed
in future, will add more tests w/ different permission levels
2 years ago
Thomas Lynch
452071ebb0
debugLogs logs board and global setting changes
2 years ago
Thomas Lynch
7893947ee6
refactor, dedup the combining of post data into strings for filtering, and blocking post/applying ban. also improve the comments. previously was ugly and duplicated between makepost and editpost model
2 years ago
Thomas Lynch
e2c68723b5
add back !dontStoreRawIps to manage pages, because the raw rooms dont get broadcasted to if raw ips are fully disabled, so joining them (Even for staff with raw ip perm) will not show any posts
2 years ago
Thomas Lynch
a9af02e105
bugfix incorrect fallback for arraysetting in board tags
...
undo a change in paramconverter that could mess with array inputs being unset
migration to unfuck any broken board tags from this
2 years ago
Thomas Lynch
1a377a30ee
close #322
2 years ago
Thomas Lynch
32e0ca7d2b
remove debug, update comment
2 years ago
Thomas Lynch
24a8f5ae18
Fix bug in reporter banning, thanks to automated tests
2 years ago
Thomas Lynch
80a4247a66
adjustable hot threads limit and threshold
2 years ago
Thomas Lynch
206dd3bc32
bans
...
property name fixes/change, category -> type, type -> range, now they reflect more what they actually are
bantable updated, bit cleaner mixin
bantables now more compact, will overflow (with scroll) and no text wrap
close #446
2 years ago
Thomas Lynch
62678c2b19
Bans can now be "upgraded" retroactively to expand single IP bans to qrange/hrange bans.
...
The ban table now has a column or whether a ban is of an IP or Bypass ID. (Or pruned IP, if you were dumb enough to ban one of those)
2 years ago
Thomas Lynch
e4d6ae59ad
bit simpler deleting of quotes in deletepost.js, simple string repacement instead of remarking the whole post.
...
and refactor the deleting to return the bulkwrites
partly related to #215 , moveposts/editposts it makes sense to remarkup because in those case we can even be adding quotes.
2 years ago
Thomas Lynch
7805054635
modal shows bans, and are appealable from the modal
...
bugfix already appealed bans showing as "appealable"
minor ban form/ban mixin tweaks
no more sketchy way of "clearing" the form and resubmitting to show bans page. nice!
2 years ago
Thomas Lynch
2391e3293c
bugfix, probably from #434
2 years ago
Thomas Lynch
bb582c2de8
"helpers" -> "lib
...
god help anybody who gets serious merge conflicts from this
close #434
2 years ago
Thomas Lynch
0a8c8e3ed5
remove nonsense inconsistent check for recents pages only, pruning should be used in this case instead
2 years ago
Thomas Lynch
cf3cecbcf9
bugfix cyclic limit being only correct every n%2 post
2 years ago
Thomas Lynch
ed3f32d4a3
bugfix JIT built catalogs not having json
2 years ago
Thomas Lynch
4829bc6546
emptyDir() instead of remove() because remove runs into ENOTEMPTY under synthetic load of high post rates, probably because new threads get written to the folder at the same time. no ide a why emptyDir doesnt hav ethis problem..
2 years ago
Thomas Lynch
f41a84c944
bugfix when null tags
2 years ago