fatchan
9ce66a303d
change config to js file so it an include comments
5 years ago
fatchan
75596eaa96
names of staff hidden by default with checkbxo to optionalyl show name
5 years ago
fatchan
2bd241c6ab
try use referrer after actions to go back to correct page
5 years ago
fatchan
a8a1aacca0
make sure when deleting threads are not empty
5 years ago
Tom
ccb613b106
no more shadow bumps ( #53 )
...
* consolidate so only a single aggregate is needed with better grouping in deleting posts to fix reply counts and bump dates are also not fixed on posts deleting
* changes to account for empty threads and bulkwrite results
* some changes, but date changing rebuilds could build redundant pages, so gona ditch this for now
* make thread bounds expand for when deletes that change date happen so shadow bumps dont occur and correct pages get rebuilt
* add board to empty aggreagte for resetting reply counts to use to prevent shadow bumps
5 years ago
fatchan
e7e30e57e9
fix last post timestamp for boards when deleting posts/needsaggregate is true to reset it to the latest post
5 years ago
fatchan
48af8e8b90
bugfixes
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
48e761be46
add ip range bans
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
c8acbaae04
more scuffed stats changes:
5 years ago
fatchan
d9559c76e6
fix exploit; no longer use extended body parser mode and remove unneeded array prefix from array body fields, since we use different lib to parse body now. also upgrade express and dont allow body for modlog actions to be entered into modlog, replace with non user controlled text
5 years ago
fatchan
9f0d8867ca
change how stats work because im stupid and they were basically capped at threadlimit*replylimit per board because of using the posts collection. as posts are pruned, they would not be counted in stats even if part of calculations
5 years ago
fatchan
549313c49a
split global management pages into separate each page
5 years ago
fatchan
143ea5a0a0
start of json api read only for boards, threads, catalog, banners
5 years ago
fatchan
7868e1c5d3
use a queue with workers for generating static pages in background that arent immediately needed
5 years ago
fatchan
3b59af8987
theme change
5 years ago
fatchan
71410ca48d
add ability to ban reporters e.g. for spamming reports
5 years ago
fatchan
7ca255346a
additional log message to modlog events
5 years ago
fatchan
f1707bc5a7
action handler improvement. also fixed board-specific IP deleted not working for global staff
5 years ago
Tom
f0ca405236
Add modlogs ( #48 )
...
* public mod logs, per day and list of log days
* action handler variable names and logic changes, also dont duplicate modloglist code
5 years ago
fatchan
8c09b8bd58
add db index file and destructure to reduce repetitive imports
5 years ago
fatchan
4787c0c1d8
references #2 more options for reply vs thread post settings on manage pages
5 years ago
fatchan
e7b4a60e95
proper permissions system ready for board creation and assigning staff, and post password hashing
5 years ago
fatchan
38b8c1f7e2
constant time compare for post passwords, wont reveal if passwords exist or their length
5 years ago
fatchan
5595dd7024
make sticky, sage, lock, cyclic a toggle so they can be reversed or toggled independently in batches
5 years ago
fatchan
54a13dc945
ip hash and fix inaccessible ip in report/globalreport for actionhandler
5 years ago
fatchan
86610f66c3
post deletion for partial selections patch for delete post iont
5 years ago
fatchan
9997a8d538
make delete_file work alongside delete_post and bans
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
e59af4d34f
add cyclic to actionhandler under same method as sage/lock since it wont change order
5 years ago
fatchan
13ed2b2b91
improve actionhandler. not correctly handles case of page numbers decreasing on a delete action, removing further pages html correctly
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
7c57fca366
organise the helpers some
5 years ago
fatchan
9d83260d22
added custom ban duration for bans, no duration is perma references #2
5 years ago
fatchan
6ea3f29d17
bans _are_ building actions since the ban message is set on a post, and reduce unnecessary catalog rebuilds on spoilering or bans of non-OP post
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
50bbbbc7e8
remove broken tag from end of length truncated message previews, and only add truncation message where necessary
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
263a937081
properly rebuild on bans, sagdes, locks, etc
5 years ago
fatchan
c54c9e7892
multi board rebuilds and rebuilds work for global actions untested
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
77a0b6ecb9
changes to handing actions better
5 years ago
fatchan
fad5d04577
fix rebuilding for first page bumps and implement basic rebuilding for post actions
5 years ago
fatchan
a818a25e91
generate and save html to disk. actions that would cause a page to change delete the html. on the next visit, nginx will try_files, else pass to the backend which will generate the page again. CURRENTLY DOES NOT SUPPORT POST ACTIONS e.g. deletes, spoiler, sticky, etc will not cause pages to be deleted for future rebuilding. thats coming in next commits. consider this the start of actual smart building strategy to prevent templating and db hits unnecessarily. where its possible to serve a plain html page, we will do so.
5 years ago
fatchan
24206860a2
move actionhandler since its for 2 routes to seperate file and reduces imports in form controller fixes #25
5 years ago