Skip to content

Commit

Permalink
updating history; small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaG committed Jul 14, 2015
1 parent afbc0fc commit 297d6c8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -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`).
Expand Down
2 changes: 1 addition & 1 deletion packages/telescope-lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Package.onUse(function (api) {
'accounts-twitter',
'accounts-facebook',
'check',
'audit-argument-checks',
// 'audit-argument-checks',
'reactive-var',
'http',
'email',
Expand Down
1 change: 1 addition & 0 deletions packages/telescope-notifications/lib/callbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion packages/telescope-posts/lib/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
5 changes: 5 additions & 0 deletions packages/telescope-posts/lib/server/fastrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 297d6c8

Please sign in to comment.