updating history; small tweaks

This commit is contained in:
Sacha Greif 2015-07-14 11:40:58 +09:00
parent afbc0fc8e3
commit 297d6c844b
6 changed files with 16 additions and 4 deletions

View file

@ -12,7 +12,6 @@ aldeed:template-extension@3.4.3
anti:i18n@0.4.3
aramk:tinycolor@1.1.0_1
aslagle:reactive-table@0.7.3
audit-argument-checks@1.0.3
autoupdate@1.2.1
base64@1.0.3
binary-heap@1.0.3
@ -157,6 +156,6 @@ underscore@1.0.3
url@1.0.4
useraccounts:core@1.8.1
useraccounts:unstyled@1.8.1
utilities:avatar@0.7.13
utilities:avatar@0.7.14
webapp@1.2.0
webapp-hashing@1.0.3

View file

@ -1,3 +1,10 @@
## v0.21.2 “FastScope”
* Added day by day settings for newsletter frequency (thanks @johnthepink!).
* Implemented Subs Manager.
* Implemented FastRender.
* Now using `check` for methods.
## v0.21.1 “SlugScope”
* Added URL slugs for posts (i.e. `/posts/xyz/my-post-slug`).

View file

@ -18,7 +18,7 @@ Package.onUse(function (api) {
'accounts-twitter',
'accounts-facebook',
'check',
'audit-argument-checks',
// 'audit-argument-checks',
'reactive-var',
'http',
'email',

View file

@ -43,6 +43,7 @@ Telescope.callbacks.add("postApprovedAsync", postApprovedNotification);
// add new comment notification callback on comment submit
function commentSubmitNotifications (comment) {
// note: dummy content has disableNotifications set to true
if(Meteor.isServer && !comment.disableNotifications){
var post = Posts.findOne(comment.postId),

View file

@ -197,7 +197,7 @@ Meteor.methods({
editPost: function (modifier, postId) {
// checking might be redundant because SimpleSchema already enforces the schema, but you never know
check(modifier, {$set: Posts.simpleSchema(), $unset: Object});
check(modifier, Match.OneOf({$set: Posts.simpleSchema()}, {$unset: Object}, {$set: Posts.simpleSchema(), $unset: Object}));
check(postId, String);
var user = Meteor.user(),

View file

@ -30,6 +30,11 @@ Posts.fastRenderSubscribe = function (view, params) {
view: view,
limit: params.limit || Settings.get('postsPerPage', 10)
};
console.log('////////////// fastrender ////////////////')
console.log(subscriptionTerms)
this.subscribe('postsList', subscriptionTerms);
this.subscribe('postsListUsers', subscriptionTerms);
console.log('//////////////////////////////////////////')
};
Meteor.startup(function () {