41 Commits (e2ecbae06c594c037e029a51f519e6bb981392bb)

Author SHA1 Message Date
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
6 years ago
Barış Soner Uşaklı ba21c5170a moved increase/decrease
moved these two methods into addPostToTopic&removePostFromTopic
6 years ago
Barış Soner Uşaklı 5c7dd54815
fix zsets and update them on post move, closes #6823 (#6827) 6 years ago
Barış Soner Uşaklı f6ac92111b style changes 8 years ago
Julian Lam 72e77772db Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak 532951c24f ESlint space-in-parens, block-spacing 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli 1e9fabc5db closes #5354 8 years ago
Sergii Paryzhskyi e515b791da Fix eslint rules (#5117)
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
barisusakli 56d325bd86 privilege fixes 9 years ago
barisusakli 596af5d82b closes #4754 9 years ago
barisusakli 3f0ca31393 style changes 9 years ago
boomzilla 52e4a37df8 When forking a topic, updates user bookmarks in the topic to keep the last read position (#4554)
from inadvertently being too far down the topic due to post indices decreasing because
some posts were moved to a new topic.
9 years ago
barisusakli ff88186d41 closes #4537 9 years ago
pichalite be4aa5ac94 add title length check to topic fork process 9 years ago
barisusakli fb7f10d63d closes #3821 9 years ago
barisusakli c0c38437a0 isAdminOrMod 10 years ago
barisusakli d7f82f96b1 remove threadTools require 10 years ago
barisusakli 777157c0d6 remove old postTools requires 10 years ago
barisusakli ffff8093ba make sure user is admin/mod before forking 10 years ago
barisusakli f6be4efe8b when a post is moved update recent topics order 10 years ago
Barış Soner Uşaklı c94c1430b7 api/post/pid route 10 years ago
barisusakli 6ccdf187ea closes #2595 10 years ago
barisusakli 5414c268a0 sort numerically 10 years ago
barisusakli 3d9e86d9b2 removed null 10 years ago
barisusakli da4014eb71 dont allow move to same topic 10 years ago
barisusakli 8bba811aaf closes #2522 10 years ago
barisusakli 782896997d post count fix for post move 10 years ago
barisusakli f3f4711a60 wait for callback 11 years ago
barisusakli b7f71ca0b4 fixes removePostFromTopic
remove the pid from the votes set too
11 years ago
barisusakli 7610c11cd1 closes #450
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.

added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.

the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
11 years ago
barisusakli 4234057821 first pass for #1518
this only handles postTools privileges, topic and category will follow
11 years ago
Julian Lam 34b522f36d missed a bunch of "editable" checks 11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli 1f77df794a added lots of error keys 11 years ago
barisusakli db3632557e moved notification push out of markAsRead 11 years ago
barisusakli 478429af3a moved fork to new file 11 years ago