294 Commits (47d73a2ab4f51b6e00d2c764329c77988631374c)

Author SHA1 Message Date
Barış Soner Uşaklı 59eeff8f0f closes #7011 6 years ago
Barış Soner Uşaklı 53ad2bbd6e
Categories optimize (#6999)
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
6 years ago
Barış Soner Uşaklı d5af39ca5d make 1 call for parentCids 6 years ago
Barış Soner Uşaklı eba1a405d2 load category parents and childrens in one call
add more missing guest/spider checks
6 years ago
Barış Soner Uşaklı 20abc7fc47 closes #6985 6 years ago
Barış Soner Uşaklı 157a7d1f0e prevent possible crash if category.posts is undefined 6 years ago
Baris Usakli 3425370adb dont use indexOf in map 6 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
6 years ago
Baris Usakli 968be7d8de make lint happy 6 years ago
Baris Usakli 3c611d85ed closes #6912
- on category setParent dialog do not show children of current category
- break recursion if category parentCid is equal to child cid to prevent
infinite loop
- dont allow setting the parentCid of a category to one of it's children
6 years ago
Barış Soner Uşaklı 5ee4529a8e if source has no parentCid assume 0 6 years ago
Barış Soner Uşaklı 9918389a43 closes #6884 6 years ago
Barış Soner Uşaklı c27be9db5a
Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
6 years ago
Baris Usakli 12f3f56b01 change to .exists 6 years ago
Barış Soner Uşaklı fb6067a7ca only parse if field is requested 6 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 6 years ago
Barış Soner Uşaklı 44a957faca remove more parseints 6 years ago
Baris Usakli 138154a71c move modules 6 years ago
Barış Soner Uşaklı c738dc7d3e remove some more parseInts 6 years ago
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ı ee2f9e9434 remove some parseInts 6 years ago
Barış Soner Uşaklı f5fe91286e closes #6851 6 years ago
Barış Soner Uşaklı f53984aeae refactor user/category data 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı b57db7fd8e
update groups join to take array of group names (#6834)
* allow groups.join to take an array of group names

* pass an array to groups.join/leave in privileges

* split up groups/membership

* add hits/miss to group cache

* fix typo
6 years ago
Barış Soner Uşaklı 5c7dd54815
fix zsets and update them on post move, closes #6823 (#6827) 6 years ago
Baris Usakli edefab1d69 closes #6728
add option to disable a category on creation
show disabled categories on manage privileges
6 years ago
Andrew Rodrigues a06b33a713 fix html characters when cloning children categories 7 years ago
Andrew Rodrigues 12940b577b closes #6703 7 years ago
Barış Soner Uşaklı e8d7a23e2e remove deprecated methods 7 years ago
Barış Soner Uşaklı 2fd2accf8c add tests for top topics
fix popular page displaying 18 topics per page
7 years ago
Julian Lam 99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
7 years ago
Julian Lam fdc30537cb Merge remote-tracking branch 'origin/master' into user-blocking 7 years ago
Barış Soner Uşaklı 7c43c7e0f9 closes #6473 7 years ago
Julian Lam bfee23adee basic methods and initial integration for #6463 7 years ago
Barış Soner Uşaklı fde44cb9b9 pass array to groups.destroy
pass array to db.sortedSetRemove
7 years ago
Davis 9d171ca1e2 Add cid for filter:category.update hook (#6319) 7 years ago
Baris Usakli ecf6c0f3ec closes #4652 7 years ago
Barış Soner Uşaklı 8446a733e5 closes #5569 7 years ago
Barış Soner Uşaklı ff6c6a54c1 make upload permissions global
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
7 years ago
Barış Soner Uşaklı 2bf275fe29 #6158 7 years ago
Baris Usakli 5604c62776 use the first set for sorting 7 years ago
Baris Usakli 6778cce265 add new zset 7 years ago
Baris Usakli a500e0019c closes #6005 7 years ago
Baris Usakli bc6b1a8f56 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	public/src/admin/extend/plugins.js
8 years ago
Barış Soner Uşaklı c0f390322c https://github.com/Schamper/nodebb-plugin-poll/issues/86 8 years ago
Julian Lam 184dacf1d7 Merge branch 'master' into develop 8 years ago
Barış Soner Uşaklı 67ca1881bd closes #5831 8 years ago
Baris Usakli 72cafd55cf 2 new hooks for changing direction and set name 8 years ago
Barış Soner Uşaklı e0dc47f883 closes #5779 8 years ago
Barış Soner Uşaklı 7fe9366103 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 8 years ago
Barış Soner Uşaklı d65f494c6d closes #5127 8 years ago
Baris Usakli 037a0e5239 closes #5742
also fix reverse infinite scroll when sorting is changed
8 years ago
Baris Usakli 1d26fc0d89 closes #5741 8 years ago
psychobunny 88d5f97280 closes #5717 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı f1b8492164 remove unnecessary checks 8 years ago
Barış Soner Uşaklı 02dee48329 use backgroundImage if its passed in 8 years ago
Barış Soner Uşaklı 79a48cec5f controllers/category tests 8 years ago
Barış Soner Uşaklı f57b5f4e4c refactor 8 years ago
Barış Soner Uşaklı 3a1eba2537 merge 8 years ago
Barış Soner Uşaklı 0b3656f34c fix timeouts on category.purge when there are 20k groups 8 years ago
barisusakli e3205bcfad merge 8 years ago
Peter Jaszkowiak 0fe10f5e86 Escape topic titles at the source, deduplicate 8 years ago
Julian Lam a141835cf8 Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 1fb48ef7a7 Fix #5592 (#5593)
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents

* Fix tests
8 years ago
Julian Lam d18cfced96 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Peter Jaszkowiak 484a800327 Merge branch master into develop 8 years ago
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
8 years ago
Peter Jaszkowiak 8119b8c4ae `filter:teasers.get` provided with `uid` 8 years ago
Julian Lam ddea9f534e running eslint again 8 years ago
Julian Lam 72e77772db Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 93f38d4f30 ESlint no-multi-assign
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
8 years ago
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars 8 years ago
Peter Jaszkowiak c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs 8 years ago
Peter Jaszkowiak 57f89663aa ESlint radix 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak feb8405f95 ESlint eol-last 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 532951c24f ESlint space-in-parens, block-spacing 8 years ago
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli 3fb7f9fce5 closes #5398 8 years ago
Julian Lam 9dcbe875a0 Merge branch 'master' into develop 8 years ago
Julian Lam c99321a518 always setting app.previousUrl now, and passing cid into filter:category.topics.get hook 8 years ago
barisusakli 8f0f959d53 add `filter:categories.copyPrivilegesFrom`
https://github.com/Schamper/nodebb-plugin-poll/issues/77
8 years ago
barisusakli c0a8fd7395 allow multiple tags 8 years ago
Barış Soner Uşaklı 805cacb2af dont add tid to :tids:posts if its pinned 8 years ago
barisusakli 0b9829850c closes #5273 8 years ago
barisusakli 49267d54b7 topics unread tests 8 years ago
barisusakli c33d3e874a store pinned topics in new zset
keep pinned topics on top on different sort types
8 years ago
barisusakli 1658ebbe20 categories update test 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
HeeL 3fa1c1f927 Fix space-infix-ops linter rule 8 years ago
barisusakli 038418bf87 batch.processArray
use batch.processArray in notifications.push and moveRecentReplies
added notification tests
added test for moveRecentReplies
clear group cache if a group is deleted
8 years ago
barisusakli a6c3be0bb1 store category recent tids for faster retrieval 9 years ago
barisusakli 958fe3e72f closes #3762 9 years ago