Barış Soner Uşaklı
307abaa8cc
fix: only return necessary data for categories
2019-09-20 02:12:15 -04:00
Barış Soner Uşaklı
b81405a8cc
feat: increase size of local cache
2019-09-11 18:09:39 -04:00
Barış Soner Uşaklı
6cda369872
refactor: make categories.buildForSelectCategories non async
2019-09-10 23:44:08 -04:00
Baris Usakli
71e50bbf4e
refactor: socket.io/admin/categories async/await
2019-09-06 16:31:19 -04:00
Barış Soner Uşaklı
69333f59af
refactor: remove vars
2019-08-22 21:16:37 -04:00
Barış Soner Uşaklı
f2912e9fe0
fix: pinned tids showing on page > 1
2019-08-22 21:14:18 -04:00
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
2019-08-13 15:12:27 -04:00
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b26
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e41
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb2
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee1
Merge: e3352b272 72590b346
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272e
Author: Renovate Bot <bot@renovateapp.com >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae
Author: Renovate Bot <bot@renovateapp.com >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38
Author: Renovate Bot <bot@renovateapp.com >
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199
Author: Misty (Bot) <deploy@nodebb.org >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a1759
Author: Baris Usakli <barisusakli@gmail.com >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57b
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6
Author: Renovate Bot <bot@renovateapp.com >
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
2019-08-13 15:12:27 -04:00
Barış Soner Uşaklı
fd5f9822bd
fix : #7823 , fix topic move readding pids when topic is deleted
2019-08-08 14:23:34 -04:00
Baris Usakli
8bf40d04c9
fix : #7788 , fix on topic move and new post
2019-07-26 14:23:10 -04:00
Baris Usakli
053ff510bb
fix : #7788 , fix another edge case
...
ignore pids in topics that were purged/deleted
2019-07-26 13:22:33 -04:00
Barış Soner Uşaklı
3c32d8600f
fix : #7788 No new posts ( #7793 )
...
* feat: debug no-new-posts
* feat: add test for user delete
* fix: timeout for flag test
* feat: shorter
2019-07-23 21:11:04 -04:00
Barış Soner Uşaklı
fcf3e0770b
feat: #7743 categories
2019-07-16 00:41:42 -04:00
Barış Soner Uşaklı
bd640a1107
Topic await errors ( #7727 )
...
* feat: derp await
* feat: restore user.getSettings
* feat: cleanup
* feat: make tid const
* feat: cleanup
* fix: tests
* feat: deprecate filter:controllers.topic.get
* feat: rewrite post-index logic
* feat: change calculation to match others
* fix: use .async
* feat: remove try/catch wrapper
2019-07-03 12:48:26 -04:00
Julian Lam
67b8cb8977
fix: restore uid in teasers userObj
2019-06-26 12:14:13 -04:00
Barış Soner Uşaklı
cb51c239f2
feat: remove duped zadds, these are already in topics.onNewPostMade
2019-06-24 23:05:56 -04:00
Barış Soner Uşaklı
198d05875f
feat: cleanup, use bulk
2019-06-24 21:36:20 -04:00
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
2019-06-24 15:21:43 -04:00
Barış Soner Uşaklı
0dca13e9c2
feat: optimize copy privileges
2019-05-30 21:41:54 -04:00
Barış Soner Uşaklı
8aef689f05
fix: no need for moderate bit for global mods and admins
2019-05-30 20:12:04 -04:00
Barış Soner Uşaklı
035f624758
Remove implicit mod privs. closes #6345 ( #7648 )
...
* feat: add upgrade script to give mods privs
* feat: give all privileges when making a moderator
* feat: remove implicit privs
* feat: give global mods default privs
* feat: more priv fixes
* feat: use lodash
* fix: remove implicit mod priv from topic delete
* fix: more privs
* fix: posts.canEdit
* fix: canDelete and canEdit
* fix: tests, remove console.log
* feat: shorter functions
* feat: add tests
* fix: uids
* fix: redis random test fail
2019-05-30 19:30:47 -04:00
Baris Usakli
64679b37cc
fix : #7647 , fix getModeratorUids
...
sets.groupNames is an array that contains other arrays of groupnames so passing it to getMembersOfGroups returned wrong results when there were more than 1 element in it.
2019-05-29 15:44:33 -04:00
Barış Soner Uşaklı
dfab231afd
Copy group privs ( #7610 )
...
* feat: ability to copy a groups privileges
ability to copy a group's privileges to all categories, or children of current category
* feat: switch to dropdown
added copy from category to groups
* fix: indents
2019-05-15 20:56:23 -04:00
Barış Soner Uşaklı
397e062a3c
fix: clear children before building tree
...
prevents infinite loop on databases that have children array saved in database
2019-04-06 20:33:03 -04:00
Barış Soner Uşaklı
3304ffe978
fix : #7502
2019-03-27 18:22:49 -04:00
Barış Soner Uşaklı
81306fff3c
feat: allow multiple cids for getActiveUsers
2019-03-25 12:06:32 -04:00
Julian Lam
745a9589e9
Use topics:read privilege for topic filtering use cases ( #7462 )
...
* fix: use topics:read privilege for topic filtering use cases
* fix: tests
* fix: more broken tests
2019-03-16 14:51:46 -04:00
Barış Soner Uşaklı
b71e0eb179
fix: prevent infinite loops if category is already in children
2019-03-13 12:43:47 -04:00
Barış Soner Uşaklı
4732bed3db
fix : #7448
...
don't set parent to itself
2019-03-13 11:35:39 -04:00
Baris Usakli
7809ba2800
fix : #7193 , closes #7194
2019-01-04 13:27:41 -05:00
Barış Soner Uşaklı
eb7ae54f81
Category watch state ( #7109 )
...
* feat: wip, category watch change
* feat: pass data to client
* feat: allow changing state
* fix: account page categories
* fix: show in unread if topic is followed or category is watched
* feat: add default watch state to acp
* feat: save user category watch state
* feat: update unread recent pages
* fix: remove dupe code
* fix: flip conditions
* fix: handle empty arrays
* fix: ignore/watch on others profile
* feat: upgrade script for category states
if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers
* fix: upgrade
* fix: tests
* fix: redis count
* fix: more tests
2018-12-14 16:24:17 -05:00
Barış Soner Uşaklı
263c918088
feat: remove uid:<uid>:ignored:cids ( #7099 )
...
use cid:<cid>:ignorers instead
2018-12-12 11:15:34 -05:00
Barış Soner Uşaklı
78fa734017
feat: cache category tag whitelist
2018-12-09 16:03:41 -05:00
Baris Usakli
d3c6cba33f
closes #7060
2018-12-05 11:22:44 -05:00
Barış Soner Uşaklı
a63ddbe2aa
fix : #7040
...
if category doesn't exist return null and 404
2018-12-01 17:15:38 -05:00
SweetPPro
dab1a1d638
fix for null category ( #7029 )
2018-11-29 10:47:13 -05:00
Barış Soner Uşaklı
29e9310aa5
dont crash for undefined categories
2018-11-29 07:55:56 -05:00
Barış Soner Uşaklı
00a066985a
cache categories:cid and cid:<cid>:children
...
these rarely change, no need to go to db for them
2018-11-27 19:38:28 -05:00
Barış Soner Uşaklı
59eeff8f0f
closes #7011
2018-11-27 11:01:46 -05:00
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
2018-11-25 19:08:38 -05:00
Barış Soner Uşaklı
d5af39ca5d
make 1 call for parentCids
2018-11-22 18:21:43 -05:00
Barış Soner Uşaklı
eba1a405d2
load category parents and childrens in one call
...
add more missing guest/spider checks
2018-11-22 10:53:44 -05:00
Barış Soner Uşaklı
20abc7fc47
closes #6985
2018-11-21 16:42:57 -05:00
Barış Soner Uşaklı
157a7d1f0e
prevent possible crash if category.posts is undefined
2018-11-12 14:04:38 -05:00
Baris Usakli
3425370adb
dont use indexOf in map
2018-11-10 11:24:10 -05:00
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 😬
2018-11-07 15:53:14 -05:00
Baris Usakli
968be7d8de
make lint happy
2018-11-06 13:35:55 -05:00
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
2018-11-06 13:34:29 -05:00
Barış Soner Uşaklı
5ee4529a8e
if source has no parentCid assume 0
2018-10-29 11:18:00 -04:00
Barış Soner Uşaklı
9918389a43
closes #6884
2018-10-29 10:59:22 -04:00