mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
only make headline mandatory, not url
This commit is contained in:
parent
159492d12e
commit
cf5e186b8c
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ Meteor.methods({
|
||||||
if (!user || !canPost(user))
|
if (!user || !canPost(user))
|
||||||
throw new Meteor.Error(123, 'You need to login or be invited to post new stories.');
|
throw new Meteor.Error(123, 'You need to login or be invited to post new stories.');
|
||||||
|
|
||||||
if(!post.headline || !post.url)
|
if(!post.headline)
|
||||||
throw new Meteor.Error(456, 'Please fill in a headline and URL');
|
throw new Meteor.Error(456, 'Please fill in a headline');
|
||||||
|
|
||||||
if(!this.isSimulation)
|
if(!this.isSimulation)
|
||||||
limitRate(user, Posts, 30);
|
limitRate(user, Posts, 30);
|
||||||
|
|
Loading…
Add table
Reference in a new issue