Thomas Lynch
157f9838d0
Finish the rest of models besides actionhandler, and change frontend post "marking" to be translated fe-side ref #396
2 years ago
Thomas Lynch
e047782249
eslint lib, migrations, db, models, test, schedules and root dir
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
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
11609b37b8
ref #376
...
move mark text to bottom
make a bit more generic
add support for moves as well
opacity .75 on the post contents for a bit more affordance
3 years ago
Thomas Lynch
1ed4ec5359
ref #376
...
actually send emits
delete buttons & postform
mark replies when op deleted
disconnect socket if connected
3 years ago
Thomas Lynch
888d134b5f
ref #376
3 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
ddd949e743
make schedules able to run separately and dont make instance on import, do it in the tasks folder index
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
fatchan
90ef62ef08
use proper plurals and 'and' and amounts > 1 for deleting posts. big ass template string
4 years ago
fatchan
ff2b7a9b97
option for immediately pruning files
5 years ago
fatchan
23c9079c03
use highlight.js for syntax highlighting in code blocks of posts
5 years ago
fatchan
8d092b8f1d
improve post markdown to use chunks so that code blocks can be processed separately and not be broken by other styles, also opens the door to using a custom code parser later on that includes syntax highlighting
5 years ago
fatchan
045716de78
add deleteold as a separate tool to delete files in dir older than a tiemstamp, and then prune older than 30 days logfiles with generating the modlog list
5 years ago
fatchan
82a1842643
thread moving update markup, sets aggregate and keeps correct reply/file counts and doesnt clash with adding sticky, etc since if threads are moved they have those flags removed
5 years ago
fatchan
fabab059de
early post moving, next up refactor to move re-markup for styling logic and backlinks out from deletepost into general case to use when moving posts that have quotes in them
5 years ago
fatchan
6da38dec18
fix file pruning for unused files
5 years ago
fatchan
143ea5a0a0
start of json api read only for boards, threads, catalog, banners
5 years ago
fatchan
7ca255346a
additional log message to modlog events
5 years ago
fatchan
8c09b8bd58
add db index file and destructure to reduce repetitive imports
5 years ago
fatchan
9bb6f78cff
bugfixes for file ref counts and deleting multiple posts
5 years ago
fatchan
70b38d96e7
ability to delete own board for BO/global/admin
5 years ago
fatchan
627ccbc8cd
early pruning for deduplicated files that no longer exist in any posts
5 years ago
fatchan
6ce96d7b5c
post re-markups with Promise.all
5 years ago
fatchan
2f829121ba
dont add a property to an array thats probably a bad idea, make it an object with a set of threads and property for if any were directly selected
5 years ago
fatchan
a1e102f25d
re-markup posts when a post they quote is deleted
5 years ago
fatchan
fcec878053
optimisation for backlink deleting, use an with updadtemany instead of updateOne to reduce bulkwrite amount instead of one for everyt single quote (duhhh)
5 years ago
fatchan
4bf56fdc3b
cyclical threads, fix trying empty bulkwrite in deleteposts, fix missing thumbs in catalog tiles
5 years ago
fatchan
dc3005a3db
NOW I REMEMBER why i didnt do that before: make backlinks delete properly based on quotes from database.
5 years ago
fatchan
cb2fe7c3b5
fix cyclical issue by not taking the model into the posts db, and correct params for deletepost
5 years ago
fatchan
0b817b9c68
unify post deletion including removing old html, and add backlinks in the databse. will allow for more easily re-marking up posts in future and unlinking dead quotes from deleted posts or in cyclical threads
5 years ago
fatchan
7c57fca366
organise the helpers some
5 years ago
fatchan
6ae05b58ed
action handler improvements, dont rebuild on reports, and onyl continue if some valid actions were selected e.g. not trying to sticky an already-sticky post.
5 years ago
fatchan
f9ec124d61
dont use object tag unnecessarily, deleted file display properly in catalog and other minor style changes
5 years ago
fatchan
c7d02a5a2b
temp files _actually_ deleted for uploads, still need a little refactor. also remove hyphen from filenames
5 years ago
fatchan
1a186b865c
dont delete files since we hash them. keep for later
5 years ago
fatchan
5158893bbc
move to an immediate build strategy to prevent issues with active pages rebuilding excessively on quick successive request
5 years ago
fatchan
dd4f76fe60
max threads pruning and some of the batch deletion changes references #23
5 years ago
fatchan
139f937897
banners, captcha, image in separate folders and associated changes
5 years ago
fatchan
65989c85fc
sticky, lock, sage + changed action handling significantly to combine queries
5 years ago
fatchan
a4de693c24
changes how actions are handled, remove dupliacte checks, add a validator for actions to check if authed, global, require passwords,etc. reference #17 #18
5 years ago
fatchan
91e828e768
delete thumbs properly
5 years ago
fatchan
d5870187bc
global and board bans/reports separated, improved action selection form
5 years ago
fatchan
ff4f6c4758
stop calling that a model
5 years ago
fatchan
335b38f9cc
unbanning, rename some routes and remove some unnecessary error catches
5 years ago
fatchan
956a8693ec
small form improvements and corrections
5 years ago
fatchan
db963d4607
global and board IP bans, improved error handling, improved permissions checks
5 years ago
fatchan
e823cad14e
scuffed bans. todo: custom duration, expiry in DB, show banned post
5 years ago