Baris Usakli
87225a90c3
fix : #8134 , upgrade mkdirp to 1.0.x
5 years ago
Barış Soner Uşaklı
8c48f94b96
fix : #8139 , dont allow restore if not deleted by self
5 years ago
Barış Soner Uşaklı
66febb8071
feat: add test for isOnline
5 years ago
Barış Soner Uşaklı
df2c785127
feat: add test for change post owner
5 years ago
Barış Soner Uşaklı
23810cc64b
fix : #8133 , check if user is in room before removing
5 years ago
Baris Usakli
418c174d56
fix: dont return flag data to client
5 years ago
Barış Soner Uşaklı
51236df4ed
fix: check if user has read priv before flagging
5 years ago
Barış Soner Uşaklı
1f13ab8a19
fix: restrict getUsersInRoom to members
5 years ago
Julian Lam
ecc579a29c
fix: tests for messaging
5 years ago
Barış Soner Uşaklı
1b08f37612
fix: tests, was using hardcoded message id
5 years ago
Barış Soner Uşaklı
bfaba89557
Merge branch 'master' of https://github.com/NodeBB/NodeBB
5 years ago
Julian Lam
8e5a2276af
feat: check flag values on save (assignee and state) ( #8122 )
...
* feat: add assignee checking when updating flag
Prior to this, it was possible to update the assignee to any value (or
any user. This commit adds checking to allow only admins, global
moderators, or in the case of flagged posts, moderators.
Also some prep work was added for value checking `state`.
* feat: value checking `state` on flag update
The state should be one of the constants defined earlier in the file.
5 years ago
Barış Soner Uşaklı
6a63c1a100
fix: escape system message, don't allow editing system messages
5 years ago
Barış Soner Uşaklı
8c6a7954cf
fix: delete upload
5 years ago
Barış Soner Uşaklı
01d1ae78c8
fix : #8120 , bubble errors from static hooks
5 years ago
Barış Soner Uşaklı
3e52557689
fix: change owner missing await
5 years ago
Barış Soner Uşaklı
e06c1bfcd2
fix: escape config.userLang/acpLang, don't allow invalid language codes
5 years ago
Barış Soner Uşaklı
61da8c29ac
fix: group create/join/update name validation
5 years ago
Barış Soner Uşaklı
10989cccaa
fix: meta description missing if url doesn't have post index
5 years ago
Barış Soner Uşaklı
9d074731f4
fix: login with weak password
5 years ago
Baris Usakli
c2cd7de891
fix : #8069 , dont show hidden groups in search
5 years ago
Opliko
0efe27b1f2
fix: make _csrf a secure cookie if the website is using https ( #8045 )
...
* Make _csrf a secure cookie if the website is using https
* fix style for TravsCI
* Add `url_parsed` to databasemock
5 years ago
Barış Soner Uşaklı
480a64aaa7
feat: #7467 , pass query params when redirecting to posts
5 years ago
Barış Soner Uşaklı
e3c9dafa08
fix: tests
5 years ago
Barış Soner Uşaklı
1cedc4a0d6
feat: #7957 , allow post queue based on group
...
allow multiple select in ACP pages
5 years ago
Julian Lam
cf7e0cfd2d
feat: no more session cookie for guests ( #7982 )
...
* feat: no more session cookie for guests
* fix(tests): added additional tests and fixed the broken test
5 years ago
Barış Soner Uşaklı
441dd86d29
fix: convert param to string in slugify
...
fixes adding users to privilege table
5 years ago
Barış Soner Uşaklı
ca3be1f336
fix : #7974 ( #7976 )
5 years ago
Baris Usakli
0da4f7ee8d
fix: event tests
5 years ago
Barış Soner Uşaklı
661a0f5068
fix: don't show deleted topics on unread
5 years ago
Barış Soner Uşaklı
75bcb0f484
fix: remove unused data from post/topic/user hashes
5 years ago
Barış Soner Uşaklı
6fb29e8408
fix: tests
5 years ago
Barış Soner Uşaklı
02d38caf47
refactor: async/await
5 years ago
Barış Soner Uşaklı
3caa387ac6
fix: tests
5 years ago
Baris Usakli
9c051386d5
fix: tests
5 years ago
Barış Soner Uşaklı
ffe3670ff5
feat: deprecate file.isFileTypeAllowed
...
use image.isFileTypeAllowed, this function was always meant for images
5 years ago
Barış Soner Uşaklı
310c6fd33f
properly filter /unread /recent /popular /top ( #7927 )
...
* feat: add failing test for pagination
* feat: test
* fix: redis tests
* refactor: remove logs
* fix: add new test
* feat: make sortedSetRangeByScore work with keys on redis
* fix: hardcoded set name
* feat: show topics from readable categories on recent/popular/top
* feat: rewrite unread topics
respect watched categories and followed topics
* fix: term + watched
5 years ago
Barış Soner Uşaklı
22b02f1407
feat: add failing test for pagination ( #7924 )
...
* feat: add failing test for pagination
* feat: test
* fix: redis tests
* refactor: remove logs
5 years ago
Barış Soner Uşaklı
b602c04463
feat: refactor getSortedSetRange to allow big arrays
5 years ago
Baris Usakli
1e5246f9ad
feat: add new test
5 years ago
Barış Soner Uşaklı
f9d6912b4a
refactor: async/await file
5 years ago
Barış Soner Uşaklı
96ab8d05aa
fix: only allow png/jpg/bmp in cover/profile images
5 years ago
Baris Usakli
ecf39727cc
fix : #7912
5 years ago
Opliko
b9583ed838
Add privilege for accessing user information ( #7859 )
...
* Add view users info global privilege
* Show user ip only to global mods and admins
* fix missing comma
* Hide link for users without correct privilege
* move getting privilege information to getAllData
* Hide the link from Global Moderators as well
* Give Global Moderator view:users:info privilege
* Restrict ip in post menu to view:users:info
* add some trailing commas....
* Add privilege to categories test
* Add group privilege to categories test
* add upgrade script
* fix style for TravisCI
* more styling - change spaces to tabs
* some more styling fixes (hopefully final one)
* fix style for Travis CI
* hide ip in chat messages
* Don't show even hidden ips on user profile page
5 years ago
Barış Soner Uşaklı
de4619689b
fix: change params
5 years ago
Julian Lam
1796b65d34
feat: option to restrict group leaving, closes #7770
5 years ago
Julian Lam
30a86ed553
fix : #7853 , dissociation on post purge
5 years ago
Barış Soner Uşaklı
aea04de094
feat: update LESS to v3.x, #7855 ( #7867 )
...
* feat: #7855
* fix: tests
5 years ago
Barış Soner Uşaklı
f15c7f12b3
refactor: async/await
6 years ago
Barış Soner Uşaklı
1e0190abef
fix : #7842 , groups.invite works with an array of uids
6 years ago
Barış Soner Uşaklı
fa26855671
feat: #7842 , make isInvited, isPending work with uids
6 years ago
Julian Lam
c44bf48c01
fix: removed console.logs
6 years ago
Julian Lam
f736f0b382
fix: broken tests from 71b205a889
6 years ago
Barış Soner Uşaklı
23046bab9a
Merge branch 'master' of https://github.com/NodeBB/NodeBB
6 years ago
Baris Usakli
2abe244b6e
fix: newPostEditDuration
6 years ago
Barış Soner Uşaklı
dec8040c09
feat: widgets/index.js
...
enable widget-essentials in tests
fix widget test
6 years ago
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
6 years ago
Julian Lam
79eed9ae60
feat: #7743 meta/templates.js
6 years ago
Barış Soner Uşaklı
0b498acdcf
fix : #7765
6 years ago
Barış Soner Uşaklı
2f0a331f02
fix: don't return promise
6 years ago
Barış Soner Uşaklı
44a3352003
fix: socket.io methods calling callbacks twice if method returns promise
6 years ago
Julian Lam
4fb271c684
System chat messages ( #7771 )
...
* fix: removed duplicate checkContent call in addMessage
addMessage is called in one place (sendMessage), and the checks
are already contained there. addMessage is the lower level call
and so should be called only from within core itself.
* feat: #7330 chat system messages for join, leave, rename
* fix: add back content checking in .addMessage();
* fix: tests, and added .addSystemMessage() method
Tests were relying on message indices that changed due to the
new system messages.
* feat: add tests for system chat messages
* refactor: rewrite half of src/messaging/rooms.js, fix tests
* feat: #7743 messaging/room.js
* fix: tests for messaging/room.js, #7743
* fix: trying to fix tests
* fix: omg :rage2:
6 years ago
Barış Soner Uşaklı
c0c6c652be
feat: #7743 , finish post module
6 years ago
Barış Soner Uşaklı
1b2b308a7e
feat: #7743 , posts module
6 years ago
Barış Soner Uşaklı
cd80c2638c
feat: #7743
...
user/password
user/picture
6 years ago
Barış Soner Uşaklı
0a690c5710
feat: #7743
...
user/online.js
6 years ago
Barış Soner Uşaklı
fe4c048198
feat: #7743
...
user/index.js
user/info.js
user/invite.js
user/jobs.js
6 years ago
Barış Soner Uşaklı
cd2e68cb2d
feat: remove unused code, add 2 tests
6 years ago
Barış Soner Uşaklı
53e1b349ae
Change post owner ( #7752 )
...
* feat: #7749 , allow array of keys for setObject
* feat: sortedSetRemoveBulk
* feat: test for bulk remove
* feat: #7083 , ability to change post ownership
* feat: #7083 , fix tid:<tid>:posters
* feat: #7083 , front end
* fix : #7752 , psql methods
* fix: add missing await
* fix: maybe psql
6 years ago
Barış Soner Uşaklı
4170abfd6b
feat: add utils.promiseParallel
6 years ago
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8e6d8295310074b18cc82a504487862.
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
6 years ago
Julian Lam
8a6a58ee43
feat: added new admin option newbiePostEditDuration ( #7737 )
...
* feat: added new admin option newbiePostEditDuration
Also:
- Grammar-checked a couple language strings
- Moved a couple form inputs around in new user restrictions
- Added a test for the new option
- fix: 'defore' typo
6 years ago
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
6 years ago
Barış Soner Uşaklı
3ecd703ea3
feat: #7707 , added sortedSetAddBulk
6 years ago
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
6 years ago
Julian Lam
289dada5f7
fix(deps): update to eslint@6
6 years ago
Aziz Khoury
a6436716ea
feat: hooks can now return promise or call callbacks
...
* hooks can now return promise or call callbacks, either way works
* cleanups
* moar cleanups and fix callback 1st null arg
* rm unnessesary spread
6 years ago
Barış Soner Uşaklı
4b843ba16f
fix : #7567 , allow invite and approval at the same time
6 years ago
Baris Usakli
31ccc860d3
feat: allow multiple scores in sortedSetsAdd
6 years ago
Barış Soner Uşaklı
8aef689f05
fix: no need for moderate bit for global mods and admins
6 years ago
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
6 years ago
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.
6 years ago
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
6 years ago
Barış Soner Uşaklı
b990312088
fix: test
6 years ago
Barış Soner Uşaklı
2c98dd5f9d
Object cache refactor ( #7558 )
...
* fix: cache refactor
db.getObjectField no longer loads entire object
db.getObjectsFields only clones data once
more tests
* feat: add back cache to redis
db.getObjectField no longer loads entire object
6 years ago
Julian Lam
808c4909a4
fix : #6438 only apply whitelist when fields request empty ( #7528 )
...
* fix : #6438 only apply whitelist when fields request empty
* feat: explicit password retrieval denied via getUsersFields
6 years ago
Aziz Khoury
3fbb6faf28
feat: update unban logic/invocation and refactor User.bans module
...
* auto unban when User.getUsersFields is called and the user is banned but has expired
* cleanups and removal of expiry_readable
* expiry_readable make an alias for backward compatibility
* User.bans.func vs User.*ban*Func
* console.log cleanups, plus todo message added
* use code util.deprecate
* fix: remove ununsed winston require
6 years ago
Barış Soner Uşaklı
2ee2cd528f
feat: #7501
6 years ago
Barış Soner Uşaklı
b52dba5c92
fix : #7508
6 years ago
Barış Soner Uşaklı
c12e1d19a7
fix: tests
6 years ago
Julian Lam
697a6597f3
fix : #7444 Re-factor handling of og:image tags ( #7463 )
...
* fix: display proper site logo or og-image with sizes in head
* fix: refactor og:image logic, #7444
- Updated logic to set additional og:image tags based on more
factors
- logo.png fallback
* feat: save image sizes on post upload, re: #7444
* fix: awaiting addTags in topic controller
* fix: pass strings to meta tags object
* fix: sending absolute image url to meta tag
* fix: removed unneeded async and requiring sync db
* feat: upgrade to calculate image sizes for all post uploads tracked
* fix: tests
6 years ago
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
6 years ago
Baris Usakli
f9d92db5d5
fix: typo
6 years ago
Baris Usakli
e71ae80cbc
fix: tests
6 years ago
Baris Usakli
23da300958
feat: pass options to digest
6 years ago
Julian Lam
d3a10628e7
fix: broken 50% border radius on emails, failing tests
6 years ago
Julian Lam
3a7f1c192b
fix: failing tests from revamped-emails branch
6 years ago
Barış Soner Uşaklı
c6ad8fae2a
fix : #7354
6 years ago
Barış Soner Uşaklı
5917dec288
fix: only allow numbers as scores ( #7356 )
...
* zadd score checks
* fix: only allow numbers as scores
* fix: convert values to strings
6 years ago
Julian Lam
0c09b7402d
feat: logging password resets and errors into event log
...
closes #7343 , also adds tests for password reset socket calls
6 years ago
Barış Soner Uşaklı
c72da5595a
fix : #6806
...
3 new global privileges
view:users
view:tags
view:groups
6 years ago
Barış Soner Uşaklı
ae779ea4f9
fix : #7334
6 years ago
Barış Soner Uşaklı
9d1fcf4e36
fix: closes #7217
6 years ago
Barış Soner Uşaklı
5353960ae7
fix : #7316
6 years ago
Barış Soner Uşaklı
bc41848adb
fix: test
6 years ago
renovate[bot]
8a64667ff8
fix(deps): update dependency sharp to v0.21.3 ( #7267 )
...
* fix(deps): update dependency sharp to v0.21.3
* fix: tests for new sharp version errors
6 years ago
Julian Lam
c831ff0de3
fix: removal of timeago fallback middleware ( #7259 )
...
* fix: removal of timeago fallback middleware
Instead of loading English fallback on missing language, we opt
to not send a script tag for a missing language to begin with.
Timeago already loads with English as default, so it will just
continue to use English.
* fix: check userLang against supported language codes
* fix: cleaned up code as per @pitaj
* fix: added comments
* fix: more fixes as per @pitaj
* feat: added addl. test for timeago locales, fixed broken test
6 years ago
Julian Lam
70a87d4399
feat: support for one-click unsubscribe from email clients ( #7203 )
...
* feat: sending notifs via ACP creates real notification
re: #7202
* feat: basic integration for one-click unsubscription #7202
* feat: tests for #7202 + bugfix
* feat: added and organized digest unsub tests
closes #7202
6 years ago
renovate[bot]
84e228bbb8
fix(deps): update dependency diff to v4 ( #7198 )
...
* fix(deps): update dependency diff to v4
* chore(deps): +diff@4.0.1
* fix: test for #7198
6 years ago
Baris Usakli
7809ba2800
fix : #7193 , closes #7194
6 years ago
Barış Soner Uşaklı
3917022a48
fix : #7139
6 years ago
Barış Soner Uşaklı
7e828404f6
fix : #7116
...
dont save relative_path in db for group covers
6 years ago
Baris Usakli
0c1ac4d6a2
feat: #7032
6 years ago
Barış Soner Uşaklı
fef7e13c9e
feat: small fixes
6 years ago
Barış Soner Uşaklı
99e0895e99
fix: move the check to get methods
...
all .post methods will have csrf
6 years ago
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
6 years ago
Barış Soner Uşaklı
263c918088
feat: remove uid:<uid>:ignored:cids ( #7099 )
...
use cid:<cid>:ignorers instead
6 years ago
Barış Soner Uşaklı
26ccd8f626
fix: db info page
...
if there is no connection to db, connect first
6 years ago
Barış Soner Uşaklı
81aa3a0b8a
fix: don't crash in flags.validate if user blocked target
6 years ago
Barış Soner Uşaklı
e55fb43703
fix : #7086
6 years ago
Baris Usakli
e65d40c937
dont return undefined from sortedSetsCard if keys is empty or falsy
6 years ago
Baris Usakli
76af8caf58
add missing semicolon
6 years ago
Baris Usakli
420227faae
parseFloat scores
6 years ago
Julian Lam
5f3d1c76c8
fix : #7038 , autoLocale logic not playing nicely with no-refresh auths ( #7059 )
...
* fix : #7038 , autoLocale logic not playing nicely with no-refresh auths
- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
webserver.js into new middleware method.
* style: tests, use lodash
* fix: timeago strings not switching languages on login or out
6 years ago
Baris Usakli
d3c6cba33f
closes #7060
6 years ago
Barış Soner Uşaklı
a63ddbe2aa
fix : #7040
...
if category doesn't exist return null and 404
6 years ago
Barış Soner Uşaklı
1f918ca8f8
Home route ( #7039 )
...
* fix: WIP home fix
* remove console.log
* fix : #6949
on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
6 years ago
Baris Usakli
cd46febdd0
fix lint
6 years ago
Baris Usakli
b86f155690
fix : #7037
6 years ago
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
6 years ago
Barış Soner Uşaklı
00a066985a
cache categories:cid and cid:<cid>:children
...
these rarely change, no need to go to db for them
6 years ago
Barış Soner Uşaklı
c240733aee
fix logs test
6 years ago
Barış Soner Uşaklı
0361849bb1
check status code
6 years ago
Barış Soner Uşaklı
47b2057f20
#7007
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ı
9d28b935fd
dont load uid 0, -1 from db
6 years ago
Barış Soner Uşaklı
a6864a8055
add groupTitle test for guests
6 years ago
Barış Soner Uşaklı
ca1e3a758b
#6986
6 years ago
Baris Usakli
b83e50f286
remove delayImageLoading from api @julianlam
6 years ago
Barış Soner Uşaklı
afa84023a2
closes #6942
6 years ago
Barış Soner Uşaklı
f8e219c323
handle empty set, add test
6 years ago
Barış Soner Uşaklı
b6771836cf
closes #6937
6 years ago
Baris Usakli
62787368c6
add searchonly option to searh api
6 years ago
Julian Lam
da10ca084b
fix : #6921 , allow square brackets in usernames
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
Barış Soner Uşaklı
75816deca7
add cache to redis ( #6917 )
...
* add cache to redis
move out cache module from mongo
* fix redis tests
* add callback noop
* fix typo
* del cache on field delete
* make redis/mongo caches separate
6 years ago
Julian Lam
501b3a79ca
Refactor skins to be built on server-side ( #6849 )
...
* WIP
* using bootswatch from npm instead of bootswatch CDN url
* feat: on-demand client css building for skins
* added ability for client-side to select a skin
* updated loading and saving logic of bootstrapSkin on client side user settings
* fix: broken test for #6849
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
Peter Jaszkowiak
9a32118418
Enable `require.main.require` in tests ( #6896 )
6 years ago
Barış Soner Uşaklı
d3e4daebec
posts/delete cleanup
6 years ago
Barış Soner Uşaklı
7aa937a657
remove dupe code in mongodb sorted
6 years ago
Barış Soner Uşaklı
ea1e8fb8fe
Merge branch 'master' of https://github.com/NodeBB/NodeBB
6 years ago
Barış Soner Uşaklı
19e6c61244
add new test for queue
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
566564ed74
fix redis tests
...
fixed typo in groups/data.js
added postcount,viewcount to int fields
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ı
9c03881d5a
add threshold for image resizing
6 years ago
Barış Soner Uşaklı
537b7ff7e8
remove more parseInts
6 years ago
Baris Usakli
a228dc2de9
closes #6797
6 years ago
Barış Soner Uşaklı
175e13edf6
group data
6 years ago
Barış Soner Uşaklı
c30ff42817
test for hooks page
6 years ago
Barış Soner Uşaklı
c738dc7d3e
remove some more parseInts
6 years ago
Barış Soner Uşaklı
7a44424214
parse '123' to 123 if it has no default
6 years ago
Barış Soner Uşaklı
d07e3e6d97
if not in defaults use string
6 years ago
Barış Soner Uşaklı
4fff5e9baf
closes #6855
6 years ago
Barış Soner Uşaklı
ac39112271
remove 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ı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı
038f97b0f5
more settings tests
6 years ago
Barış Soner Uşaklı
8c9754ecee
add test for /admin/settings/user
6 years ago
Barış Soner Uşaklı
250e8c01ff
closes #5008
6 years ago
Barış Soner Uşaklı
da1a90a470
add search test
6 years ago
Baris Usakli
baf91089a6
remove unused methods
6 years ago
Baris Usakli
74fdadf8a6
test pubsub cache
6 years ago
Baris Usakli
444fd70ba3
test pubsub
6 years ago
Barış Soner Uşaklı
986511e718
try with higher timeout
6 years ago
Barış Soner Uşaklı
1d15dc089b
revert isCluster
6 years ago
Barış Soner Uşaklı
aa567a5f2d
print out connString and opts
6 years ago
Barış Soner Uşaklı
38ce83304d
up widget essentials
6 years ago
Barış Soner Uşaklı
2d8d234c57
test mongodb again
6 years ago
Barış Soner Uşaklı
8f7482955d
set cluster to false again
6 years ago
Barış Soner Uşaklı
fd31ad3cfe
disable busy check on tests
6 years ago
Barış Soner Uşaklı
f4df89fe90
closes #6840
6 years ago
Barış Soner Uşaklı
5dbc7f032a
reset post cache between each suite
6 years ago
Barış Soner Uşaklı
fc68263f91
change to TEST_ENV
6 years ago
Barış Soner Uşaklı
45b6e56665
add node_env to tests
6 years ago
Barış Soner Uşaklı
85c60316ed
upgrade to winston 3.1, closes #6590 ( #6838 )
...
* upgrade to winston 3.1
* fix winston in web/install and tests
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ı
c06480b82e
add tests for blocked users teaser/unread
6 years ago
Barış Soner Uşaklı
d4db8c2d42
removed reset
6 years ago
Barış Soner Uşaklı
1024a0efa1
add reset to pubsub for tests
6 years ago
Baris Usakli
7d8fc09226
add test for pubsub
6 years ago
Baris Usakli
28f2144933
remove time out on plugin upgrade test
6 years ago
Baris Usakli
a867b77509
add assert message to test
6 years ago
Barış Soner Uşaklı
e615391b22
convert values to string before removing
6 years ago
Barış Soner Uşaklı
5c7dd54815
fix zsets and update them on post move, closes #6823 ( #6827 )
6 years ago
Baris Usakli
5f49a1d82c
disable timeout on build templates
6 years ago
Baris Usakli
9ed4239d8e
small changes and test for user/:slug/categories
6 years ago
Barış Soner Uşaklı
b58ab48485
add test for /sessions controller
6 years ago
Barış Soner Uşaklı
a7c4c59121
change to series
6 years ago
Barış Soner Uşaklı
1bea247748
add username/email to user-delete event
6 years ago
Barış Soner Uşaklı
f77091d1ed
change user delete so it returns quickly
6 years ago
Barış Soner Uşaklı
805da98a36
remove unnecessary groups.resetCache calls
6 years ago
Barış Soner Uşaklı
061b279c48
Merge branch 'master' of https://github.com/NodeBB/NodeBB
6 years ago
Barış Soner Uşaklı
77beaf2e15
Allow local login,closes #6800 ( #6803 )
...
* WIP
* reset groups cache after every suite
6 years ago
Barış Soner Uşaklı
2bd02a7ae1
disable timeout on plugin installs
6 years ago
Barış Soner Uşaklı
944972c6f2
change to series
6 years ago
Barış Soner Uşaklı
18d0deeccb
update deprecated methods ( #6794 )
6 years ago
Barış Soner Uşaklı
1cb2e1e368
remove console.log switch to series
6 years ago
Barış Soner Uşaklı
f618ba8e1e
add private category test for unread tids
6 years ago
Barış Soner Uşaklı
95501e8fee
closes #6738 closes #6290 ( #6785 )
...
* closes #6738 closes #6290
* fix test, delete keys
* delete all bans on user delete
* fix upgrade script to actually read reason
6 years ago
Barış Soner Uşaklı
59b988a205
change test so it checks url
6 years ago
Barış Soner Uşaklı
b7ead6dc9c
Replace jimp with sharp ( #6774 )
...
* add probe image size and max image size
* replace jimp and image-probe with sharp
* better name for test
* resize with just path
* resize thumb inplace
* use filename
6 years ago
Barış Soner Uşaklı
ea1697d073
remove console.log
6 years ago
Barış Soner Uşaklı
25fed0aa8d
change isPasswordCorrect to return false if user does not have password
6 years ago
Barış Soner Uşaklı
2a2e8136cd
fix tests
7 years ago
Ben Lubar
33228bb7fe
PostgreSQL database driver ( #5861 )
...
* [test/database/list] Fix test list 4 being used in two different tests
* [database/postgres] PostgreSQL database driver
* [database/postgres] Make transactions work based on continuation scope.
* [database/postgres] Implement nested transactions
* eslint --fix
* Add database changes from earlier this week to the PostgreSQL driver.
* Fix typo
* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN
* [database/postgres] Fix sortedSetsCard returning an array of strings.
* Update socket.io postgres adapter
* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.
Add a test case to catch this error.
* Fix lint errors.
* Only prune sessions on one instance in a cluster to avoid deadlocks.
They're caught and handled by the database server, but they spam the logs.
* Fix arguments.slice.
7 years ago
Barış Soner Uşaklı
fa499aef18
closes #6680
7 years ago
Baris Usakli
546b13b897
fix lint and tests
7 years ago
Barış Soner Uşaklı
c7d6cacd98
closes #6658
7 years ago
Peter Jaszkowiak
04d31fe1d4
Precompile all templates
...
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
7 years ago
Barış Soner Uşaklı
3449cf321b
add back cache and pubsub
7 years ago
Barış Soner Uşaklı
ae0563375e
derp
7 years ago
Baris Usakli
584f88e092
blocks WIP
7 years ago
Baris Usakli
be1e83bfc1
fix tests
7 years ago
Barış Soner Uşaklı
82b2a20d0c
user tests
7 years ago
Barış Soner Uşaklı
ccad95cf73
closes #6579
7 years ago
Barış Soner Uşaklı
2fd2accf8c
add tests for top topics
...
fix popular page displaying 18 topics per page
7 years ago
Barış Soner Uşaklı
4684ab3bf6
suggest topic test
7 years ago
Barış Soner Uşaklı
c3fc4a06bf
test sortedSetUnion with scores
7 years ago
Julian Lam
8d41e319ea
fixed tests
7 years ago
Julian Lam
8e832abf1e
additional tests for post diffs privilege checking
7 years ago
Julian Lam
510dd268cc
fix tests
7 years ago
Barış Soner Uşaklı
14f6e74bad
closes #6556
7 years ago
Barış Soner Uşaklı
a7267df404
closes #6464
7 years ago
Barış Soner Uşaklı
4504bbae52
2 diff test
7 years ago
Barış Soner Uşaklı
229e49cf8f
closes #6523 , closes #6524
7 years ago
Barış Soner Uşaklı
65dc530df5
some controller tests
7 years ago
Barış Soner Uşaklı
d977934c66
adjust username test
7 years ago
Barış Soner Uşaklı
8e8058ec6e
closes #6497
7 years ago
Julian Lam
445b92ae38
Revert "fix some tests"
...
This reverts commit 2551df80f7
.
7 years ago
Barış Soner Uşaklı
cdc3ef09e9
closes #6481
7 years ago
Julian Lam
2551df80f7
fix some tests
7 years ago
Barış Soner Uşaklı
9132743870
#6481
7 years ago
Julian Lam
5dc25a3c00
Merge remote-tracking branch 'origin/master' into chat-kick-support
7 years ago
Julian Lam
a08572b800
kick support for chats, #6479
7 years ago
Barış Soner Uşaklı
beadcd7857
fix tests, remove dupe exposeUid
7 years ago
Julian Lam
dc386b5b23
Merge branch 'master' into user-blocking
7 years ago
Julian Lam
a0643b63df
uncommenting tests again
7 years ago
Julian Lam
8db98b5cf4
additional UCP integration for #6463
7 years ago
Barış Soner Uşaklı
bc18b489e6
fix group test
7 years ago
Barış Soner Uşaklı
9ae5946e7a
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Julian Lam
3951bb9532
Merge remote-tracking branch 'origin/master' into user-blocking
7 years ago
Barış Soner Uşaklı
505e511e4d
fix tests
7 years ago
Julian Lam
322d8236d2
added test for User.blocks.is, re: #6463
7 years ago
Julian Lam
032ec8b443
tests!!! glorious tests!!!
...
re: #6463
7 years ago
Julian Lam
1f1e055509
updated post association code to only associate files that exist, closes #6455
7 years ago
Julian Lam
0f13ae3c87
added isOrphan method, #6455
7 years ago
Julian Lam
2e125293e6
save reverse association of md5 of upload to pid, #6455
7 years ago
Julian Lam
850f59a1ae
additional functionality, integration, and testing for #6455
7 years ago
Julian Lam
5943389b7a
tests for #6455
7 years ago
Julian Lam
6088c37f5a
Revert "fixing tests"
...
Turns out baris already fixed them
This reverts commit 3bc0266aa4
.
7 years ago
Julian Lam
3bc0266aa4
fixing tests
7 years ago
Barış Soner Uşaklı
ed289ebeab
two more text fixes
7 years ago
Julian Lam
65c8457898
fixing tests that broke due to gdpr requirement
7 years ago
Barış Soner Uşaklı
04979f86a8
delete users uploads on account delete
...
store uid:<uid>:uploads
7 years ago
Barış Soner Uşaklı
0070f5c1b2
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Julian Lam
0158b1aa91
Various password logic fixes on client and server-side
...
Fixes #6399
Fixes #6400
7 years ago
Barış Soner Uşaklı
ae0f1847ae
allow multiple origins for access-control-allow-origin header
...
add access-control-allow-credentials header to acp
7 years ago
Julian Lam
bf2e905ced
fixed tests, closes #6371
7 years ago
Peter Jaszkowiak
eaae5b52cd
ACP quick actions ( #6374 )
...
* ACP quick actions
- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"
* Change info alert to black-on-white to match focused search bar
* Fix tests
* Fallback for failed fetch of latest version
7 years ago
Barış Soner Uşaklı
fde44cb9b9
pass array to groups.destroy
...
pass array to db.sortedSetRemove
7 years ago
Barış Soner Uşaklı
be5c237388
fix decr/incrObjectField if key in array doesn't exist create it
7 years ago
Barış Soner Uşaklı
6a9a73c86c
changes to leaveAllGroups
...
Groups.destroy can take an array of groupnames
Groups.leave can take an array of groupnames
db.incrObjectField/decrObjectField can take an array of keys
db.sortedSetRemove can take an array of keys and values
db.setRemove can take an array of keys
7 years ago
Barış Soner Uşaklı
7221b71b68
add test for srem with multi elements
7 years ago
Baris Usakli
959a742c63
add llen to dbal
7 years ago
Julian Lam
9ea6dbc0e7
fix flag tests
7 years ago
Barış Soner Uşaklı
bce640e514
closes #6340
7 years ago
Julian Lam
c93f943bef
Merge branch 'develop'
7 years ago
Barış Soner Uşaklı
e1c6761087
closes #6258
7 years ago
Barış Soner Uşaklı
7b45a6ea8b
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Julian Lam
0d65cec3d0
fixing tests
7 years ago
Baris Usakli
9b78b95c47
fix tests
7 years ago
Julian Lam
1ce448f2a1
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Barış Soner Uşaklı
15e9bbac92
closes #6311
7 years ago
Barış Soner Uşaklı
723f31a362
closes #6323
7 years ago
Baris Usakli
e99d4a5c61
closes #6313
7 years ago
Baris Usakli
ecc2b9560d
parseInt data.hidden add tests
7 years ago
Barış Soner Uşaklı
7a2d6fe22d
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Barış Soner Uşaklı
b084a596fa
closes #6301
7 years ago
Barış Soner Uşaklı
155e20d216
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Barış Soner Uşaklı
0a5d16d1cd
closes #6284
7 years ago
Barış Soner Uşaklı
33a8cb947e
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Barış Soner Uşaklı
d8b5d40668
closes #6242
7 years ago
Julian Lam
457194b333
Merge branch 'master' into develop
7 years ago
Barış Soner Uşaklı
f3fda152bf
closes #6216
7 years ago
Barış Soner Uşaklı
72140e5338
closes #5991 , closes #5884
7 years ago
Ben Lubar
5b1ed21634
[database/mongo] Improve speed of sortedSetRank ( #6229 )
...
* [database/mongo] Improve speed of sortedSetRank
* [database/mongo] Fix sortedSetRank to filter by _key
7 years ago
Julian Lam
c47987b305
fixed test for error when adding self to chat
7 years ago
Julian Lam
f37b9d786d
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Barış Soner Uşaklı
a2ba01b0d7
fix test
7 years ago
Barış Soner Uşaklı
2f3b7279be
closes #6212
7 years ago
Julian Lam
ec07247854
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Baris Usakli
ecf6c0f3ec
closes #4652
7 years ago
Barış Soner Uşaklı
7eab9f6ab0
add missing ;
7 years ago
Barış Soner Uşaklı
fdb221c106
fix helper test
7 years ago
Peter Jaszkowiak
4387d5d466
Ensure installed correct version of modules on startup, bump dependencies ( #6207 )
...
* Ensure installed correct version of modules
* Bump dependencies
* Bump promise-polyfill
* Fix emailer test
* Fix auto-install regression
introduced in 9b5e0f9e95
7 years ago
Julian Lam
d1ccd78ac2
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Barış Soner Uşaklı
8446a733e5
closes #5569
7 years ago
Barış Soner Uşaklı
87d40e9e78
fix increment to use data
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
Julian Lam
82a95a03be
Chat message soft deletion -- closes #6181
...
Squashed commit of the following:
commit f84c06bdcc45f24ef7ffde6a8f33b48d8f97fc36
Author: Julian Lam <julian@nodebb.org>
Date: Mon Dec 18 14:42:47 2017 -0500
added restore handler for chat messages
commit 725cd370c6ea1e8f4a28298350f3dc024d4e668e
Author: Julian Lam <julian@nodebb.org>
Date: Mon Dec 18 14:23:52 2017 -0500
backend logic and testing complete for deletion and restoration of chat messages
commit 072da758319cc93fa4c6f8bc0d672a1b716dc06e
Author: Julian Lam <julian@nodebb.org>
Date: Mon Dec 18 13:52:35 2017 -0500
changing message delete logic to not remove mids, but to filter when retrieving
commit 68bf373305ab82737658a7c31dc5549af4d6d69f
Author: Julian Lam <julian@nodebb.org>
Date: Mon Dec 18 12:37:58 2017 -0500
logic to handle deletion of a deleted chat message -- added some failing tests
commit 6899d0d234fa752e227188aa69cfcabd0d0500cc
Author: Julian Lam <julian@nodebb.org>
Date: Mon Dec 18 11:35:36 2017 -0500
chat message deletion logic
7 years ago
Julian Lam
88b47f357b
removed user.uploadFromUrl and associated logic as cropped image modal supercedes it @pichalite
7 years ago
Barış Soner Uşaklı
108c3c980a
show invalid url error if request.head fails
7 years ago
Barış Soner Uşaklı
b778c8433a
change hook name
7 years ago
Barış Soner Uşaklı
b55087dab7
closes #6166
7 years ago
Barış Soner Uşaklı
ea83be50a1
closes #6161
7 years ago
Barış Soner Uşaklı
18b559bab0
fix test name
7 years ago
Barış Soner Uşaklı
2bf275fe29
#6158
7 years ago
Barış Soner Uşaklı
2455df438c
fix test
7 years ago
Barış Soner Uşaklı
43180d4b83
#6158
7 years ago
Barış Soner Uşaklı
8e04e86e24
closes #5912
7 years ago
Barış Soner Uşaklı
19ae8dc7e7
closes #6154
7 years ago
Baris Usakli
3551d7d68e
closes #4804
7 years ago
Barış Soner Uşaklı
e6d31c8bd2
add referer check to /api/admin/users/csv
7 years ago
Barış Soner Uşaklı
e3fd402070
escape email in registration queue and invites
7 years ago
Barış Soner Uşaklı
a7a3f3619b
dont allow login with invalid ip, escape ip display on user/info page
7 years ago
caoyi
da5997a06e
Fix typo ( #6135 )
...
Fix typo
7 years ago
Julian Lam
78c83f2561
fixing tests
7 years ago
Barış Soner Uşaklı
4f2f84e47c
#4804
7 years ago
Baris Usakli
a19537dc25
closes #6137
7 years ago
Baris Usakli
b19310049d
closes #6136
7 years ago
Baris Usakli
d9c38c7e4f
closes #6132
7 years ago
Julian Lam
e83813c531
Emailer tests for Digest.getSubscribers ( #6130 )
...
* added additional tests for Digest.getSubscribers
* added another test and tweaked existing digest list building tests
7 years ago
Barış Soner Uşaklı
07ed3807d8
remove console.log
7 years ago
Barış Soner Uşaklı
caaa72b752
closes #6124
7 years ago
Barış Soner Uşaklı
d96674da64
add test for composer fix
7 years ago
Baris Usakli
dbf815ed47
closes #6103
7 years ago
Peter Jaszkowiak
4fcedc6f31
Enable imports in custom email templates ( #6052 )
...
* Enable imports in custom email templates
* Compile emails on config change
* Add error logging
* Add emailer tests
* Fix tests
* Only build when config changes
7 years ago
Barış Soner Uşaklı
3bf7faf5fc
increase rate limit delay
7 years ago
Peter Jaszkowiak
11b9cb7688
Fix #6076 , `action:home.get:*` returned to previous functionality ( #6077 )
...
Added tests to confirm `buildHeader` is used and `/api` works
7 years ago
Peter Jaszkowiak
f5385e38bf
Add `/me*` route which redirects to `/user/[userslug]*` ( #6063 )
...
* Add `/me*` route which redirects to the current user's information
- `/me` -> `/user/[usertslug]`
- `/me/bookmarks` -> `/user/[userslug]/bookmarks`
- `/me/settings` -> `/user/[userslug]/settings`
etc
* Add tests for `/me/*`
7 years ago
Baris Usakli
e68e5122e2
add test to check breadcrumbs on home route
7 years ago
Baris Usakli
5604c62776
use the first set for sorting
7 years ago
Baris Usakli
eeedba697b
closes #5804
7 years ago
Barış Soner Uşaklı
1d50c74cdc
should error with no content
7 years ago
Barış Soner Uşaklı
e4ea4d5134
move composer routes to its own file
7 years ago
Barış Soner Uşaklı
0316f51cdb
show values if test fails
7 years ago
Peter Jaszkowiak
bbdc55cb3a
Better fix for #5993 ( #6034 )
...
* Better fix for #5993
Also a nice newline so the line doesn't get overwritten when running `./nodebb upgrade`
* Optimizations for custom homepage
Move it into a separate module
7 years ago
Barış Soner Uşaklı
760c061b1d
closes #5993
7 years ago
Barış Soner Uşaklı
4551ee4768
some more tests
7 years ago
Barış Soner Uşaklı
8810f0f2a9
remove dupe meta
7 years ago
Julian Lam
7e0d0e0eb5
Merge remote-tracking branch 'origin/develop'
7 years ago
Peter Jaszkowiak
dfad76120d
Support npm@5 and yarn ( #6010 )
...
* Support npm@5 and yarn
Use package.default.json
Partial #6008
- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`
* added logic to preserve extraneous plugins installed in node_modules/
* Don't automatically git pull
* Simplify package-install, run it on upgrade just in case
7 years ago
Barış Soner Uşaklı
3dd83237b8
add some debug for failed tests
7 years ago
Baris Usakli
c9465403f5
closes #6023
7 years ago
Peter Jaszkowiak
adc47fd053
Use relative linking ( #6011 )
...
* Use relative linking
* Add copyFile method and tests
Closes #5988
* Fix relative linking on Windows
Hard links and junctions don't work with relative paths
* Fix tests
* Revert ghange to gitignore
7 years ago
Barış Soner Uşaklı
18f4f27fe0
closes #6024
7 years ago
Barış Soner Uşaklı
5b2a674a4f
closes #6020
7 years ago
Barış Soner Uşaklı
25cd21fba8
closes #6019
7 years ago
Barış Soner Uşaklı
6b1af76f08
closes #6015
7 years ago
Barış Soner Uşaklı
d5d6748c71
closes #6013
7 years ago
Baris Usakli
47143a4a09
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
7 years ago
Baris Usakli
a500e0019c
closes #6005
7 years ago
Barış Soner Uşaklı
c453fc7275
add widget reset test
7 years ago
Barış Soner Uşaklı
a11058bce2
closes #6004
7 years ago
Peter Jaszkowiak
62ae171432
Merge remote-tracking branch 'origin/master' into develop
7 years ago
Barış Soner Uşaklı
5d45f9fff2
fix lint
7 years ago
Barış Soner Uşaklı
6a2019c646
closes #6003
7 years ago
Peter Jaszkowiak
f336726173
Bump dependencies ( #6001 )
...
* Bump dependencies
* Fix mocha v4 requiring --exit flag
Use nyc instead of the istanbul binary
* Print out summary instead of full report
7 years ago
Barış Soner Uşaklı
e7318a1cea
Mongo cache ( #6002 )
...
* cache mongodb objects
remove user settings cache since it is cached at the object level
* removed indexOf from isMemberOfSets
* change has to get, change maxAge to 0
7 years ago
Barış Soner Uşaklı
108f84fd19
add type to dbal
7 years ago
Baris Usakli
c4310395c9
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# package.json
7 years ago
Baris Usakli
8733f51f86
remove test for unused code
7 years ago
Barış Soner Uşaklı
797857e1d2
remove old test
7 years ago
Peter Jaszkowiak
60a42aa651
Merge branch 'translator-optimization' into develop
7 years ago
Peter Jaszkowiak
46fafb20b9
Remove string.js dependency
7 years ago
Barış Soner Uşaklı
557dfd5b47
testing new socket.io-client extraHeaders ( #5985 )
...
* testing new socket.io-client extraHeaders
* change mongodb installation
7 years ago
Julian Lam
df5178ce78
fixed typo in outgoing route test, and added new test for javascript protocol
7 years ago
Peter Jaszkowiak
1c35213934
Fix #5970 and forking while debugging ( #5965 )
...
* Fix forking while debugging
Debugger address in use no longer happens
* Fix cropper error
7 years ago
Barış Soner Uşaklı
b70f328520
closes #5948
7 years ago
Peter Jaszkowiak
da9da8190f
Bump dependencies
...
Bumping eslint & configs meant making some linting fixes
For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
7 years ago
Peter Jaszkowiak
dc87d7fc0f
Use .js instead of .jst
...
Fix #5934
7 years ago
Baris Usakli
c49837143c
fix test
7 years ago
Baris Usakli
1358a89305
closes #5907
8 years ago
Julian Lam
1034626896
Merge remote-tracking branch 'origin/develop'
8 years ago
Peter Jaszkowiak
e8aa8c62f6
Update jsdom
8 years ago
Barış Soner Uşaklı
bc6edba6df
change post queue test
8 years ago
Barış Soner Uşaklı
5cc39e8546
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# package.json
# src/views/admin/manage/ip-blacklist.tpl
8 years ago
Peter Jaszkowiak
abffc29128
Use Benchpress ( #5901 )
...
* Use Benchpress
* Use Benchpress.compileParse
* Error for template load failure
* Use benchpressjs package
* Compile templates on demand
* Fix user settings page
* Fix admin search to exclude `.jst` files
* Fix 500-embed
So ajaxify can still show an error if the server goes down
8 years ago
Barış Soner Uşaklı
a46db9616c
fix message delete and add test
8 years ago
Barış Soner Uşaklı
329bfeeb3b
convert min/max to float
8 years ago
Barış Soner Uşaklı
ff88be91fa
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Baris Usakli
dc9b21021a
escape moderation notes
8 years ago
Baris Usakli
bc0645dc26
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Baris Usakli
37a8247293
add test for teaser content escape
8 years ago
Baris Usakli
575c9a41cd
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Barış Soner Uşaklı
f161bbf956
Post queue ( #5878 )
...
* #5876
* add user to post queue table
* add time of post into queue
add posting restrictions to queue
* fix shouldQueueLogic for guests
* add test for post-queue route
8 years ago
Barış Soner Uşaklı
fc0e5421d6
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Baris Usakli
c21f64c27f
closes #5872
8 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
Baris Usakli
24bbf8fe00
closes #5869
8 years ago
Baris Usakli
de55c8e431
closes #4070
8 years ago
Baris Usakli
e071f94173
test debugParams.js
8 years ago
Julian Lam
303f1146b2
added upload_url to nconf vars @pitaj
8 years ago
Baris Usakli
875672522e
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# src/search.js
8 years ago
Baris Usakli
a9dbdc75af
closes #5825
8 years ago
Barış Soner Uşaklı
b3f6c423c6
fix test
8 years ago
Baris Usakli
5ce9f898b2
fix test
8 years ago
Julian Lam
84c1a182e5
Merge remote-tracking branch 'origin/master' into develop
8 years ago
Baris Usakli
e9639833c5
add router.all
8 years ago
Julian Lam
1247b4b53b
linting
8 years ago
Baris Usakli
28073cc91a
lint
8 years ago
Peter Jaszkowiak
904f22522e
Merge pull request #5821 from NodeBB/scoped-plugins
...
Support scoped plugin npm packages
Also fix logging in VS Code with the inspector debugger
8 years ago
Julian Lam
184dacf1d7
Merge branch 'master' into develop
8 years ago
Julian Lam
c4fbed24f8
Squashed commit of the following:
...
commit 9c86d9b2904e14927cd7e9679b92aec0951d1063
Merge: ebfa63a 5a7f811
Author: Julian Lam <julian@nodebb.org>
Date: Thu Jul 20 08:41:39 2017 -0400
Merge branch 'noscript-login' of https://github.com/An-dz/NodeBB into noscript
commit 5a7f81185e8f9bd7d2d011c3d495988be7e437a3
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Mon Jul 17 23:07:14 2017 -0300
Rename clashing variable 'next'
commit ebfa63a984073a58c17aa408c363cdb03ef89985
Merge: c1801cd f159d0d
Author: Julian Lam <julian@nodebb.org>
Date: Mon Jul 17 16:30:40 2017 -0400
Merge branch 'noscript-logout' of https://github.com/An-dz/NodeBB into noscript
commit c1801cda14e6363491e30b659902e2ae71f7e1f7
Merge: 7a5f9f3 9fd542d
Author: Julian Lam <julian@nodebb.org>
Date: Mon Jul 17 16:30:31 2017 -0400
Merge branch 'noscript-register' of https://github.com/An-dz/NodeBB into noscript
commit 7a5f9f35abc834bb72ddddc9ca07d34f2fde8353
Merge: 44851f9
d37b95c
Author: Julian Lam <julian@nodebb.org>
Date: Mon Jul 17 16:30:10 2017 -0400
Merge branch 'noscript-compose' of https://github.com/An-dz/NodeBB into noscript
commit f159d0d9ef1b7f600e830a96fdb4b9c87c79bb4a
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jul 6 12:16:38 2017 -0300
Prevent form submit
Required for theme change
commit d37b95cb71d32d4483190609798e244c331db165
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jul 6 01:49:52 2017 -0300
Prevent link action with scripts
Required for the theme change that changes the buttons to `a` tags.
commit 9fd542d8970b7d1a4126f4edc4b44eab7d708fb0
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 19:57:56 2017 -0300
Fix tests
commit cdad5bf8c2891ad76f7441fd4d8a74b058a14e6d
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 19:09:17 2017 -0300
Update error handling
commit 4ff11cd136a4fb98483f837e2cebc741380dfe76
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 17:29:08 2017 -0300
Remove async waterfall
commit df01d44e821a70c984b89e9585a325c3e02c6e37
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 16:59:43 2017 -0300
Set noscript compose as noscript at start
commit 4bcc380da72239b8315cc849a77a3036e06e4a12
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Wed Jul 5 16:59:12 2017 -0300
Remove last useless next
commit b5eac6fea11e209934c0648a7e75ad07a2167123
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 18:35:08 2017 -0300
Last function requires no next
commit 20a5cce6e6e32a454c304c448383707ec44c75a8
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 18:06:58 2017 -0300
Remove more useless next calls
commit 85ee22a79bcbbb1995106f43d4c74d6ba9206cab
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 17:46:07 2017 -0300
Remove useless next calls
commit 7d984c47ad24faac1fe537dee4a5a7d697e8634c
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 15:45:31 2017 -0300
Support old themes
commit 4a09dfbd08253115c342a9e829c4e6940cecb8cc
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sun Jul 2 15:37:23 2017 -0300
Moved all error handling into helpers function
commit 391aa6e67ef9ab67304005e14ac0633cdb630713
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Thu Jun 8 15:37:37 2017 -0300
ESLint - Fix mixed conditionals
commit 80ccc6fd581d791f31e7ab62de8de611837bfc3c
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 18:08:15 2017 -0300
Compose without scripts
commit 2aca811256721238ca0cede4954213d369009885
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 18:00:44 2017 -0300
Register without scripts
commit 097bb51577fb26f8e22f86dc274cb670ab606a8a
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 16:42:15 2017 -0300
Logout without scripts
commit d497e08109891079656fee1c145043a9c0e55f2e
Author: André Zanghelini <an_dz@simutrans-forum>
Date: Sat Jun 3 16:27:10 2017 -0300
Login without script
8 years ago
Peter Jaszkowiak
dc324b36b2
Add test for Plugins.showInstalled
8 years ago
Baris Usakli
18181260e7
closes #5836
8 years ago
Baris Usakli
f1f8a587d4
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# package.json
8 years ago
Barış Soner Uşaklı
0f5be5ae25
remove plugin.hook check
8 years ago
Julian Lam
c2f1d254cc
Merge branch 'master' into develop
8 years ago
Barış Soner Uşaklı
923bd86662
Widgets refactor ( #5817 )
...
* widgets refactor
render widgets server side
widgets can use all the data the template can use
* fix tests
8 years ago
Baris Usakli
e0de922ede
Revert "widgets refactor"
...
This reverts commit 9e94edb5aa
.
8 years ago
Baris Usakli
9e94edb5aa
widgets refactor
...
render widgets server side
widgets can use all the data the template can use
8 years ago
Julian Lam
121a629de6
linting
8 years ago
Julian Lam
09621a3a3d
fixes #5776
8 years ago
Julian Lam
3f2c183cbd
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
1471fbdc14
Fix tests
8 years ago
Baris Usakli
5167c1aa4f
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Baris Usakli
2f8f69d6af
test monthly digest
8 years ago
Baris Usakli
74ed033e4a
fix digest test
8 years ago
Marc-Aurèle DARCHE
6248e5562f
Fix /apple-touch-icon not sending uploaded file
...
This fixes the following error:
$ wget https://nodebb.yourdomain/apple-touch-icon
28/6 09:57:06 [28332] - error: /apple-touch-icon
Error: ENOENT: no such file or directory, stat '/home/sweet/nodebb/public/assets/uploads/system/touchicon-orig.png'
at Error (native)
8 years ago
Baris Usakli
1b0c6741f8
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Barış Soner Uşaklı
8d8f0a391f
Merge pull request #5769 from NodeBB/private-feeds
...
Private feeds, closes #5740
8 years ago
Baris Usakli
77994dcf69
fix link tag url
8 years ago
Baris Usakli
ef9e656f34
closes #5740
...
added token to topic page as well
check privilege even if token is provided
tests
8 years ago
Julian Lam
d98b3e8056
automatically lowercasing env vars in nconf, fixes #2544
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ı
be79b85526
fix test
8 years ago
Barış Soner Uşaklı
d65f494c6d
closes #5127
8 years ago
Baris Usakli
0ea4ee7dda
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
8 years ago
Baris Usakli
4903585d88
refactor userPrivileges and groupPrivileges
8 years ago
Baris Usakli
037a0e5239
closes #5742
...
also fix reverse infinite scroll when sorting is changed
8 years ago
Barış Soner Uşaklı
e56178f72e
remove init socket.io
8 years ago
Barış Soner Uşaklı
4f31dec82c
reduce usage of io.emit in tests
8 years ago
Barış Soner Uşaklı
5a55c882ab
convert NaN uids to 0
8 years ago
Barış Soner Uşaklı
92376a1589
fix calls
8 years ago
Barış Soner Uşaklı
eb0faf1e4a
change test to use new signature
8 years ago
Barış Soner Uşaklı
932247f440
up deps
8 years ago
Barış Soner Uşaklı
3049f5cf1f
#5522 test
8 years ago
Barış Soner Uşaklı
08aaabd33c
closes #5642
8 years ago
Barış Soner Uşaklı
f1b8492164
remove unnecessary checks
8 years ago
Barış Soner Uşaklı
3d1b1a9423
closes #5706
8 years ago
Barış Soner Uşaklı
9ec65db539
closes #5711
8 years ago
Barış Soner Uşaklı
271c10c9d7
dont create indices after every test
8 years ago
Peter Jaszkowiak
b171f3072b
Fix many "duplicate key" errors
...
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
8 years ago
Baris Usakli
61eb7aa68b
more tests
8 years ago
Baris Usakli
11d9410229
fix test and image normalize test
8 years ago
Baris Usakli
9efa46c65a
more account tests
8 years ago
Peter Jaszkowiak
5f36156e0d
Fix tests on Windows with CRLF
8 years ago
Peter Jaszkowiak
8901dad6f2
Revert "fix concat test on windows"
...
This reverts commit d1dd0cd6df
.
8 years ago
Baris Usakli
69b5bb39ec
unread tests
8 years ago
Baris Usakli
d1dd0cd6df
fix concat test on windows
8 years ago
Barış Soner Uşaklı
466e6d7c53
make renameGroup public for #5706
8 years ago
Barış Soner Uşaklı
f6ac92111b
style changes
8 years ago
Barış Soner Uşaklı
79a48cec5f
controllers/category tests
8 years ago
Baris Usakli
062bced3dd
cleanup and tests
8 years ago
Peter Jaszkowiak
9ef2b5a003
Don't use uglify compress
8 years ago
Peter Jaszkowiak
53eced6be0
uglify-js@3, JS source maps 🍰
8 years ago
Julian Lam
fc4f016932
Merge pull request #5689 from NodeBB/plugin-load-ref
...
Plugin load refactor
8 years ago
Peter Jaszkowiak
c85bf9202d
Fix tests sometimes failing
8 years ago
Barış Soner Uşaklı
d301139644
logger test
8 years ago
Barış Soner Uşaklı
b0dd1ad4d7
admin navigation test
8 years ago
Barış Soner Uşaklı
5cb53406fe
more picture tests
8 years ago
Peter Jaszkowiak
3dd282b7b9
Load languages with other plugin data
...
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
8 years ago
Barış Soner Uşaklı
29135dfed3
timeago locale test
8 years ago
Barış Soner Uşaklı
8205d6c897
test login after lock
8 years ago
Barış Soner Uşaklı
2bddd57a2e
test account lock
8 years ago
Barış Soner Uşaklı
b29745aa44
more auth tests
8 years ago
Barış Soner Uşaklı
b8cc67dfff
social tests
8 years ago
Peter Jaszkowiak
cd1f0ddc79
Resolve merge conflicts
8 years ago
Barış Soner Uşaklı
b2cef4846c
Merge pull request #5698 from NodeBB/build-tests
...
Tests for `./nodebb build`
8 years ago
Barış Soner Uşaklı
e4714a0c58
more auth tests
8 years ago
Barış Soner Uşaklı
1e83d33283
tests for login
8 years ago
Peter Jaszkowiak
62546bc4fd
Build tests
8 years ago
Peter Jaszkowiak
d988e8a50f
Test minifier
8 years ago
Barış Soner Uşaklı
64c7907e6c
added recent.rss
8 years ago
Barış Soner Uşaklı
a4ba88dc60
more feed tests
8 years ago
Barış Soner Uşaklı
c5c755fbb0
more notification tests
8 years ago
Barış Soner Uşaklı
9af252b899
notifications tests
8 years ago
Barış Soner Uşaklı
c364cebbe4
more tests
8 years ago
Barış Soner Uşaklı
7fb45cc148
more tests
8 years ago
Barış Soner Uşaklı
769d2b00b1
change test method call
8 years ago
Barış Soner Uşaklı
9fdd313e30
tweak test
8 years ago
Barış Soner Uşaklı
4b94446cd9
more user search tests
8 years ago
Barış Soner Uşaklı
fe0a5aaf28
fix redis tests
8 years ago
Barış Soner Uşaklı
fd0043f36a
more tests
8 years ago
Barış Soner Uşaklı
77894915eb
closes #5684
8 years ago