Thomas Lynch
28f9afa0c1
makeanimated webps not break when thumbnailing, slight change to imagethumbnail code
1 year ago
Thomas Lynch
62539ed559
actual, actual, ACTUAL************ monkey patch
1 year ago
Thomas Lynch
aa04faa25e
make global anonymizer file blocking apply to uploading board asset, banners, flags, adjust it for posting
1 year ago
Thomas Lynch
9073a1e4b5
/Actually/ monkey patch it
1 year ago
Thomas Lynch
740c69bed1
Possible monkey patch
1 year ago
Thomas Lynch
571b481a8c
add option to limit video/image sizes
2 years ago
Thomas Lynch
7370ad834d
unfuck process code block
2 years ago
Thomas Lynch
0a637c5cb8
Fix url/redirect and locale handling for js blockbypass
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
14a8d8cbee
Make modlog actions an enum, change actions and editing to use them, and map them into localised/translated in the templates
2 years ago
Thomas Lynch
8476c260b9
Add translation function and strings for just about every message in the controllers
2 years ago
Thomas Lynch
2a090c3a45
Fix some oddities esp. with lib/misc/countries, and change all the defaults and migrations to en-GB instead of en since the locales rename
2 years ago
Thomas Lynch
79c45eda4d
Change login flow to always check both 2FA, update CHANGELOG
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
5b95d51144
eslint fix
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
97e5ce53e8
Translate (just the template changes) for a ton of mixins and includes, and update country names to support multi language
2 years ago
Thomas Lynch
7525308504
Bugfix lib render when options is null default to global locale
2 years ago
Thomas Lynch
39aa567c88
fix converters/timeutils test
2 years ago
Thomas Lynch
00f6d3fdb0
convert relative times to support localisation
2 years ago
Thomas Lynch
262954c41c
remove comment todo that is already done
2 years ago
Thomas Lynch
d68a32b831
Add some additional improved permission.js tests, and null check rather than !Metadata in permission handleBody (because else 0 would be true)
2 years ago
Thomas Lynch
473eb94d39
Update permission.test.js to correctly expect() the .every rather than in the every callback, else it would only check the first one
2 years ago
Thomas Lynch
c553a60936
disable retarded i18n option
2 years ago
Thomas Lynch
fba680f40c
permissions metadata change, allow blocking editing/disable checkbox
2 years ago
Thomas Lynch
277745a5ca
Fix the completely fucked up "my permission", the board equivalent, and staff permissions page since a recent permission update. Upside is it now considers the "parent" thing, which is nice.
2 years ago
Thomas Lynch
612e7d0f3a
Add language set middleware to a bunch of routes, and make some minor middleware ordering changes to supprot
...
Add example translations in server.js, a controller for form submission, and in a middleware (file middleware in this case)
2 years ago
Thomas Lynch
7c9f6257f8
Add setQueryLanguage mw, Make bypass_minimal language aware, TODO make form submissions know language and redirect to blockbypass for board with language query string
2 years ago
Thomas Lynch
a019006e20
For the 100th time, make it "work"
2 years ago
Thomas Lynch
670119148c
Make languages on frontend included individually as a language .js file. Fix issue with lib/build/render.js page. I **think** this is good now.
2 years ago
Thomas Lynch
5bf792649b
Try getting languages into the frontend (still want a better way to only include single language packs and only a subset of keys)
2 years ago
Thomas Lynch
224b141920
Change setting locale in render locals in build locals, remove test header
2 years ago
Thomas Lynch
4c3ba53cc1
Set language global and after boards.exists
2 years ago
Thomas Lynch
5e7cc919c2
Add __ locale to render lib and gulpfile rendering
2 years ago
Thomas Lynch
679d095d98
Start on localisation ref #396
2 years ago
Thomas Lynch
7a3095594f
Change permissions metadata to be keyed by the permission bits
...
Refactor form handling for permissions in editrole/editaccount, make mush shorter and more maintainable
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
7e3c424da3
Small note about global board management permissions, allow subtitles along with titles in permission metadata
2 years ago
Thomas Lynch
bdf5da0adc
Ban type ip display and storage improvement
2 years ago
Thomas Lynch
1bba36b48e
Make label form of url/link posting regex support mailto
2 years ago
Thomas Lynch
326c11b95c
Close #503 attach ip version to cloak
2 years ago
Thomas Lynch
6b394aca69
Bugfix to 2fa, code-reuse prevention was blocking all codes rather than only a recently used correct code.
2 years ago
Thomas Lynch
f4328812f2
Add e2e tests for twofactor
...
Remove some cruft from package-lock from speakeasy
Add guard in dotwofactor for no/null (not blank) twofactor
2 years ago
Thomas Lynch
29bb4856ab
2fa improvements
...
- Don't allow code re-use, successfully used codes will be invalid on repeated use for the window time
- Don't attach the full twofactor secret to user object in session for security. Only store a boolean if it's enabled for rendering, checks, etc. The full account should be fetched first before doTwoFactor()
- Better names for some keys of twofactor redis stuff
2 years ago