Thomas Lynch
7370ad834d
unfuck process code block
2 years ago
Thomas Lynch
0a5b74ea31
Dont show relevance or predicted language until we have a better way to handle translation inside markdown handlers
2 years ago
Thomas Lynch
46358a3503
Add i18n to bumplock/lock/sticky/cycle, change board/globalsettings, changepassword, and create board pages
...
Update a bunch of middleware, pages and libs to destructure i18n funcs if used more than once to not repeat res.locals
ref #396 (going to try and remember this from now on)
2 years ago
Thomas Lynch
491170cad3
Change diceroll to avoid the immense pain of dealing with tryign to localise that because of remarkdowning
2 years ago
Thomas Lynch
14af4e381e
test fix for board mod -> board staff old name change
2 years ago
Thomas Lynch
32066e3f47
translation calls in a bunch of middleware, code change pass ing new arg to name handler in makepost/editpost, and sync translation keys
2 years ago
Thomas Lynch
8018ba5f0c
update filteractions to include ip type and remove old root type from inserted ban
2 years ago
Thomas Lynch
9672a1ead0
translate filteractions lib
2 years ago
Thomas Lynch
b67232fc3f
rename escape to simpleEscape to prevent ever accidentally colliding with global escape
2 years ago
Thomas Lynch
f4f88d697a
indent & spacing adjustments
2 years ago
Thomas Lynch
5a7368a0a4
Add a new property to permissions metadata and reflect on frontend inability for users without that "parent" permission to edit roles/accounts to have some permissions e.g. root, edit roles, edit accs
...
Put the metadata into permissions.js (also TODO: key the metadata by bits instead? i.e [Permisions.whatever]: {})
2 years ago
Thomas Lynch
1bba36b48e
Make label form of url/link posting regex support mailto
2 years ago
Thomas Lynch
78bd713274
Hide note from dynamicresponse in filteractions, and make seen default to true
2 years ago
Thomas Lynch
3b08cc684b
Start on ban notes
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
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
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
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
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
bb582c2de8
"helpers" -> "lib
...
god help anybody who gets serious merge conflicts from this
close #434
2 years ago
Thomas Lynch
4f525b6613
move, rename, reorganise "helpers" => "lib"
2 years ago