Commit Graph

539 Commits

Author SHA1 Message Date
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
2018-01-03 13:27:34 -05:00
Julian Lam
88b47f357b removed user.uploadFromUrl and associated logic as cropped image modal supercedes it @pichalite 2017-12-15 13:21:31 -05:00
Barış Soner Uşaklı
108c3c980a show invalid url error if request.head fails 2017-12-14 18:07:32 -05:00
Barış Soner Uşaklı
b778c8433a change hook name 2017-12-13 12:06:52 -05:00
Barış Soner Uşaklı
b55087dab7 closes #6166 2017-12-13 12:06:45 -05:00
Barış Soner Uşaklı
ea83be50a1 closes #6161 2017-12-11 11:21:22 -05:00
Barış Soner Uşaklı
18b559bab0 fix test name 2017-12-10 11:10:59 -05:00
Barış Soner Uşaklı
2bf275fe29 #6158 2017-12-10 11:02:48 -05:00
Barış Soner Uşaklı
2455df438c fix test 2017-12-09 12:48:41 -05:00
Barış Soner Uşaklı
43180d4b83 #6158 2017-12-08 19:58:12 -05:00
Barış Soner Uşaklı
8e04e86e24 closes #5912 2017-12-07 20:43:07 -05:00
Barış Soner Uşaklı
19ae8dc7e7 closes #6154 2017-12-07 12:15:07 -05:00
Baris Usakli
3551d7d68e closes #4804 2017-12-04 14:56:14 -05:00
Barış Soner Uşaklı
e6d31c8bd2 add referer check to /api/admin/users/csv 2017-12-01 18:16:59 -05:00
Barış Soner Uşaklı
e3fd402070 escape email in registration queue and invites 2017-12-01 17:38:02 -05:00
Barış Soner Uşaklı
a7a3f3619b dont allow login with invalid ip, escape ip display on user/info page 2017-11-30 14:24:17 -05:00
caoyi
da5997a06e Fix typo (#6135)
Fix typo
2017-11-30 13:01:51 -05:00
Julian Lam
78c83f2561 fixing tests 2017-11-30 12:53:49 -05:00
Barış Soner Uşaklı
4f2f84e47c #4804 2017-11-30 12:39:07 -05:00
Baris Usakli
a19537dc25 closes #6137 2017-11-29 14:04:45 -05:00
Baris Usakli
b19310049d closes #6136 2017-11-29 11:46:36 -05:00
Baris Usakli
d9c38c7e4f closes #6132 2017-11-28 14:20:16 -05:00
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
2017-11-28 11:48:31 -05:00
Barış Soner Uşaklı
07ed3807d8 remove console.log 2017-11-27 13:04:18 -05:00
Barış Soner Uşaklı
caaa72b752 closes #6124 2017-11-27 12:52:08 -05:00
Barış Soner Uşaklı
d96674da64 add test for composer fix 2017-11-23 19:13:43 -05:00
Baris Usakli
dbf815ed47 closes #6103 2017-11-22 12:10:40 -05:00
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
2017-11-21 10:51:20 -05:00
Barış Soner Uşaklı
3bf7faf5fc increase rate limit delay 2017-11-20 19:58:46 -05:00
Peter Jaszkowiak
11b9cb7688 Fix #6076, action:home.get:* returned to previous functionality (#6077)
Added tests to confirm `buildHeader` is used and `/api` works
2017-11-17 08:11:33 -05:00
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/*`
2017-11-16 17:38:26 -05:00
Baris Usakli
e68e5122e2 add test to check breadcrumbs on home route 2017-11-15 14:57:26 -05:00
Baris Usakli
5604c62776 use the first set for sorting 2017-11-08 16:32:34 -05:00
Baris Usakli
eeedba697b closes #5804 2017-11-08 14:06:52 -05:00
Barış Soner Uşaklı
1d50c74cdc should error with no content 2017-11-05 17:52:12 -05:00
Barış Soner Uşaklı
e4ea4d5134 move composer routes to its own file 2017-11-05 14:05:21 -05:00
Barış Soner Uşaklı
0316f51cdb show values if test fails 2017-11-05 10:16:02 -05:00
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
2017-11-04 10:51:44 -04:00
Barış Soner Uşaklı
760c061b1d closes #5993 2017-11-03 14:23:34 -04:00
Barış Soner Uşaklı
4551ee4768 some more tests 2017-11-03 13:25:43 -04:00
Barış Soner Uşaklı
8810f0f2a9 remove dupe meta 2017-11-02 14:55:09 -04:00
Julian Lam
7e0d0e0eb5 Merge remote-tracking branch 'origin/develop' 2017-11-02 14:13:48 -04:00
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
2017-11-02 14:12:05 -04:00
Barış Soner Uşaklı
3dd83237b8 add some debug for failed tests 2017-11-02 08:58:51 -04:00
Baris Usakli
c9465403f5 closes #6023 2017-11-01 12:05:06 -04:00
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
2017-10-31 22:18:15 -04:00
Barış Soner Uşaklı
18f4f27fe0 closes #6024 2017-10-31 18:03:54 -04:00
Barış Soner Uşaklı
5b2a674a4f closes #6020 2017-10-31 16:04:25 -04:00
Barış Soner Uşaklı
25cd21fba8 closes #6019 2017-10-31 10:53:28 -04:00
Barış Soner Uşaklı
6b1af76f08 closes #6015 2017-10-31 09:43:11 -04:00