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
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
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
8aecabc905
make global setting for languages only apply to auto-detection, as intended
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
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
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
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
08c83ac4b9
update deprecated highlight.js highlight(), was getting deprecation message.
...
method now has new signature taking options object
3 years ago
Thomas Lynch
289dd11716
remove that restriction on same board cross style quote, it confused some people
3 years ago
Thomas Lynch
b474134ed1
ability to change permissions for any markdown, this can be extended nicely in future close #303
4 years ago
Thomas Lynch
18df9e726d
The link matching is still kinda retarded, but this actually works as intended
4 years ago
Thomas Lynch
9c7d061086
fix permlevel and unterminated regex group
4 years ago
Thomas Lynch
51f729b367
dont allow []() url regex by default, only for people with permission like staff or in newsposts, announcements, etc.
4 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
7eb3f4589d
markdown style links i.e. [label]( http://link )
4 years ago
Thomas Lynch
1630efab99
Add missing string/encoding convert to insecure trip
4 years ago
Thomas Lynch
c99fbcba12
make catalog search quote links work >>>#/something/
4 years ago
Thomas Lynch
ec3af32d0b
remve debug log reference #282
4 years ago
Thomas Lynch
22f582f3a7
Insecure tripcodes reference #282
4 years ago
Thomas Lynch
c2e7699b15
change code blocks to [code][/code], try not to interfere with sjis as much reference #278
4 years ago
Thomas Lynch
bc44b0529c
Shift JIS art support with aa code language, closes #278
4 years ago
ne0n
c98b337cd3
Minor textual improvements
4 years ago
Thomas Lynch
bbd0018a03
Okaaaay dude
4 years ago
Thomas Lynch
e87754f67e
reference #256 unique message per board/thread option
...
strips quote, so starting post with quote isnt considered unique
4 years ago
Thomas Lynch
473955fd35
Remove test
4 years ago
Thomas Lynch
b20ca7cc20
Capcode input changes reference #222
...
If a user is board owner/mod, use higher capcode only if explicitly entered, else use board owner/mod capcode
Strip extra repititions
Default back to stafflevel for perm if theres a mismatch
4 years ago
Thomas Lynch
044a9bf490
basic video link embed button script, can be extended for more providers easily
4 years ago
Thomas Lynch
1713291ec7
Unbreak code blocks after new dice roll fix
...
The splitregex in the markdown function didnt include ther ```'s in the match, because it doesnt include them in the code block
So when the prepare function ran, and joined the text back together, it wouldn't have any ```'s, so the code blocks would never be split or rendered.
So quick fix was add a second one that includes the ```'s when doing the dice prepare function, so it wont break the code blocks
references #214
4 years ago
some random guy
04b2b21d95
fix dice roll math
...
In the old implementation, if you had for example 2 dice, you could only roll
even numbers, which is clearly wrong.
Also reduced the max numdice to 99 to not DoS the server with large numdice
values.
4 years ago
some random guy
5a093ce936
do not reroll dice when re-rendering markdown
4 years ago
fatchan
6cf31b5ef3
make titles not a greedy regex
4 years ago
fatchan
2744d7dbe7
-refactor message markup handler to separate function
...
-refactor name/tripcode/capcode handler to separate function
-use new methods in places like news, announcements and new posts
-more structure and logic for post editing
4 years ago
fatchan
e897b1c161
dice regex issue
4 years ago
fatchan
8836ba6ba1
quotes changes for the 10000th time
4 years ago
fatchan
8cec748ff9
fix quote bug for cross guotes being invalid when missing a number even if board exists
5 years ago
fatchan
e6d7785793
migration move files from /img to /file since it can contain more than just images
5 years ago
fatchan
f2c707c867
highlight.js force ignore_illegal for manually language selected blocks
5 years ago
fatchan
75166124e7
oversight in linkmatch for brackets and detected changes
5 years ago
fatchan
c1cff0284d
improve dicerolls, uncomment invalid quotes
5 years ago
fatchan
8b5c88332c
scuffed way to make some links in parentheses work better
5 years ago
fatchan
4457added2
greentext with quotes changes
5 years ago