mirror of
https://github.com/vale981/Vulcan
synced 2025-03-04 17:21:37 -05:00
fix getting started bug
This commit is contained in:
parent
4245323abf
commit
e913cd6abc
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ Posts.methods = {};
|
|||
*/
|
||||
Posts.methods.new = function (post) {
|
||||
|
||||
post = Telescope.callbacks.run("posts.new.sync", post, Meteor.user());
|
||||
const currentUser = Meteor.users.findOne(post.userId);
|
||||
|
||||
post = Telescope.callbacks.run("posts.new.sync", post, currentUser);
|
||||
|
||||
post._id = Posts.insert(post);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue