Added Patreon notification badge for new patreon posts

This commit is contained in:
Stefan Zermatten
2019-02-21 11:51:46 +02:00
parent 2253672f43
commit 3fbb006783
8 changed files with 80 additions and 17 deletions

View File

@@ -1,9 +1,13 @@
Meteor.publish("user", function(){
return Meteor.users.find(this.userId, {fields: {
roles: 1,
username: 1,
profile: 1,
apiKey: 1,
librarySubscriptions: 1,
}});
return [
Meteor.users.find(this.userId, {fields: {
roles: 1,
username: 1,
profile: 1,
apiKey: 1,
librarySubscriptions: 1,
lastPatreonPostClicked: 1,
}}),
PatreonPosts.find({},{sort: {dateAdded: -1}, limit: 1})
];
});