Barış Soner Uşaklı
eecc680761
style
8 years ago
dbolack-ab
c1452db0ba
Adds the filter:uploadStored hook which fires after the file is saved… ( #5798 )
...
* Adds the filter:uploadStored hook which fires after the file is saved in the async waterfall and passes:
var storedFile = {
url: nconf.get('relative_path') + upload.url,
path: upload.path,
name: uploadedFile.name,
}
plugins.fireHook( 'filter:uploadStored', { uploadedFile: uploadedFile, storedFile: storedFile } );
* Corrections per PR. Should match style guide.
* Correction attempts take 2.
Per:
/home/travis/build/NodeBB/NodeBB/src/controllers/uploads.js
234:5 error Missing semicolon semi
235:3 error Expected indentation of 3 tabs but found 2 indent
235:19 error There should be no spaces inside this paren space-in-parens
235:105 error There should be no spaces inside this paren space-in-parens
236:3 error Expected indentation of 3 tabs but found 2 indent
* next() shouldn't fire twice, but I see no documentation suggesting that the paramaters will fire correctly.
Previous comments imply it is preferred to have fireHook fire fof the callback rather than having it happen next, so I'm wrapping next in an anonymous function to ensure it passes the parameters.
If this is not the preferred method, please provide a thorough correction.
* Meh. Figuring out this style requirement is so hit and miss.
* Corrected for proper callback? technique.
Might blow up on style. Will watch.
8 years ago
Barış Soner Uşaklı
b983be2919
fix colspans in category privilege tab
8 years ago
Barış Soner Uşaklı
cc4f4e7282
style changes
8 years ago
Barış Soner Uşaklı
67ca1881bd
closes #5831
8 years ago
Baris Usakli
f8bfe79cf4
remove tid from recent_tids
8 years ago
Baris Usakli
5a9ae8f4c7
rearrange menu items
8 years ago
Barış Soner Uşaklı
5888a5ffc4
closes #5010
...
init plugin hooks before resetting widgets, the areas are returned by
`filter:widgets.getAreas`
8 years ago
Barış Soner Uşaklı
4056283fd5
always return array
8 years ago
Barış Soner Uşaklı
0f5be5ae25
remove plugin.hook check
8 years ago
Barış Soner Uşaklı
71e3fea55b
closes #5802
8 years ago
Baris Usakli
0e0d961f7c
dont change templateData
8 years ago
Julian Lam
701ba73883
updated homepage route logic so that it is all contained in the local function (and plugin hook receives all entries, including custom) @barisusakli
8 years ago
Baris Usakli
2d875a99cb
fix data
8 years ago
Baris Usakli
dc110e2e3f
closes #5818
8 years ago
Baris Usakli
59aeee6516
remove addExpiresHeaders
8 years ago
Baris Usakli
e036e26238
closes #5813
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
Barış Soner Uşaklı
80ea9e9797
fix lint
8 years ago
Barış Soner Uşaklı
6485108dfd
faster getReplies
8 years ago
Barış Soner Uşaklı
feecf0b61c
dont make db call if guest
8 years ago
Barış Soner Uşaklı
e9360347ea
less padding, closes #5811
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
Baris Usakli
fbddb665b0
make tests pass
8 years ago
Julian Lam
e309ac5040
fixes #5790
8 years ago
Baris Usakli
7538210b07
#5772
...
load correct timeago settings on cold load instead of after page load
8 years ago
Baris Usakli
d469f53eba
using async in batch
...
removed unused code in debug
8 years ago
Julian Lam
b7e8ecc6d3
updated mentions version and changed topics filter to take its translation from global hash instead
8 years ago
psychobunny
14bda343b3
use direct db call to get rss_token instead
8 years ago
psychobunny
0d60b17be1
use direct db call to get rss_token instead
8 years ago
psychobunny
6cb0d6f8c1
wipe existing rss tokens
8 years ago
Barış Soner Uşaklı
b807d3750c
encodeURI redirect url
8 years ago
psychobunny
d44090ba18
Merge remote-tracking branch 'refs/remotes/origin/private-feeds'
8 years ago
psychobunny
dd1cfd62d4
don't show rss_token in /api/user/name
8 years ago
Barış Soner Uşaklı
091fec8d6f
removed unnecessary code
8 years ago
Julian Lam
932b3f06a5
closes #5797
8 years ago
Peter Jaszkowiak
6cb8440715
Fix #5793
...
Use a custom header instead
8 years ago
Baris Usakli
77103fb3d1
closes #5785
8 years ago
Julian Lam
3bd02d58e3
fixes logic that allowed posts beyond maximum post length if min is set to 0, @barisusakli
8 years ago
Barış Soner Uşaklı
fd55e4ccdf
Merge pull request #5783 from madarche/fix-route-touchicon
...
Fix /apple-touch-icon not sending uploaded file
8 years ago
Julian Lam
28d8be8b9d
fixed #5782
8 years ago
Baris Usakli
7350e54b62
change to verbose
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
Barış Soner Uşaklı
b64ba40c67
closes #5772
8 years ago
Barış Soner Uşaklı
38af651072
use _.uniq
8 years ago
Barış Soner Uşaklı
c36f25f761
switch .filter to uniq
8 years ago
Barış Soner Uşaklı
3d85992757
modify db.processSortedSet so it works with intervals
8 years ago
Barış Soner Uşaklı
b4b68498cd
added interval option to processSortedSet
8 years ago
Baris Usakli
1f5b3ba636
closes #5771
8 years ago
Julian Lam
3cc528dc02
linting
8 years ago
Julian Lam
2e1528942c
fixed #5770
8 years ago
Julian Lam
eb9f6145d9
fixes #5770
8 years ago
Julian Lam
d117c65893
oops :shipit:
8 years ago
Barış Soner Uşaklı
0f234601f1
style changes
8 years ago
Barış Soner Uşaklı
78005d6124
show old groups first
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
Jorge Meireles
a0e501676c
Add relativePath to /ping and /sping
8 years ago
Baris Usakli
7fe239229d
show 3 digits
8 years ago
psychobunny
228e9ab8e3
proof of concept for #5740
8 years ago
Baris Usakli
cf444755df
closes #5729
8 years ago
Barış Soner Uşaklı
50f2a4ed19
remove dupe hook
8 years ago
Barış Soner Uşaklı
d65f494c6d
closes #5127
8 years ago
Ben Lubar
07982a3fa2
Fix uploading a file with no extension resulting in invalid-extension even if the file extension list is blank (allow all)
8 years ago
Julian Lam
f4fb9ee04b
adding filter hooks for flag list and retrieval
8 years ago
Baris Usakli
4903585d88
refactor userPrivileges and groupPrivileges
8 years ago
Barış Soner Uşaklı
b13ed26587
closes #5755
8 years ago
Baris Usakli
8ea5c060f5
closes #5754
8 years ago
Barış Soner Uşaklı
f1cbf563fc
closes #5751
8 years ago
Barış Soner Uşaklı
22131640fd
closes #5749
8 years ago
psychobunny
50367a971e
req should be req. 👍
8 years ago
Barış Soner Uşaklı
a49a9a07b3
refactor groups.delete
8 years ago
Barış Soner Uşaklı
e56178f72e
remove init socket.io
8 years ago
Barış Soner Uşaklı
2ae855678a
closes #5735
8 years ago
Julian Lam
3e6a779dbc
Merge remote-tracking branch 'origin/master'
8 years ago
Julian Lam
6728e9a5cc
#5729
8 years ago
Barış Soner Uşaklı
14ea9a0dd6
Merge pull request #5716 from NodeBB/import-export-ref
...
Import export cleanup
8 years ago
Julian Lam
b3c9992ba3
made upgrade script log verbose
8 years ago
Julian Lam
88a763e08b
changes to upgrade script progress bars to work better on narrow terminals, fixes #5732
8 years ago
Julian Lam
b4870654fc
Merge pull request #5728 from NodeBB/patch-pitaj
...
Assorted Fixes
8 years ago
Barış Soner Uşaklı
ddb83b3eab
closes #5731
8 years ago
Julian Lam
29e868b002
closes #5585
8 years ago
Barış Soner Uşaklı
5a55c882ab
convert NaN uids to 0
8 years ago
Peter Jaszkowiak
34af855848
Fix npm@5 saving by default
8 years ago
Peter Jaszkowiak
8e5bcf6105
Fix #5727
8 years ago
Peter Jaszkowiak
e71fb9ab24
Fix `node --inspect`
8 years ago
Peter Jaszkowiak
9a3b684228
Remove dependency, ignore package-lock.json
8 years ago
Peter Jaszkowiak
44e55d2a98
Less synchronous stuffs
8 years ago
Julian Lam
0ea89c2799
fixes #5608
8 years ago
Julian Lam
3467071a7d
fixed extra line break in upgrade scripts introduced in 5516352758
8 years ago
Peter Jaszkowiak
b60dbe7d1e
Unwrap meta modules
8 years ago
psychobunny
c94365aefd
closes #5721
8 years ago
Barış Soner Uşaklı
92376a1589
fix calls
8 years ago
Baris Usakli
da8b1b605c
#5723
8 years ago
Baris Usakli
ba9397987a
if no email dont send
8 years ago