mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Settings tweaks
This commit is contained in:
parent
e3fca2e15c
commit
40a02737cf
2 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,7 @@ var Setting = FormModel.extend({
|
|||
scoreUpdateInterval: '',
|
||||
postInterval: '',
|
||||
commentInterval: '',
|
||||
maxPosts: '',
|
||||
maxPostsPerDay: '',
|
||||
title: '',
|
||||
logoUrl: '',
|
||||
logoHeight: '',
|
||||
|
@ -22,7 +22,8 @@ var Setting = FormModel.extend({
|
|||
},
|
||||
|
||||
init: function(options) {
|
||||
this._super(Settings, options);
|
||||
this._super(Settings, options);
|
||||
this.overwriteTitle('scoreUpdateInterval', 'Scoring Frequency');
|
||||
this.overwriteTitle('requireViewInvite', 'Require Invite to view?');
|
||||
this.overwriteTitle('requirePostInvite', 'Require Invite to post?');
|
||||
this.overwriteTitle('requirePostsApproval', 'Posts must be approved by admin?');
|
||||
|
|
|
@ -15,7 +15,7 @@ Meteor.methods({
|
|||
var timeSinceLastPost=timeSinceLast(user, Posts);
|
||||
var numberOfPostsInPast24Hours=numberOfItemsInPast24Hours(user, Posts);
|
||||
var postInterval = Math.abs(parseInt(getSetting('postInterval'))) || 30;
|
||||
var maxPostsPer24Hours = Math.abs(parseInt(getSetting('maxPosts'))) || 30;
|
||||
var maxPostsPer24Hours = Math.abs(parseInt(getSetting('maxPostsPerDay'))) || 30;
|
||||
|
||||
// check that user can post
|
||||
if (!user || !canPost(user))
|
||||
|
|
Loading…
Add table
Reference in a new issue