Template.postSubmit.events({
  'submit form': function(e) {
    e.preventDefault();

    var post = {
      url: $(e.target).find('[name=url]').val(),
      title: $(e.target).find('[name=title]').val()
    };

    Meteor.call('postInsert', post, function(error, result) {
      // display the error to the user and abort
      if (error)
        return alert(error.reason);

      Router.go('postPage', {_id: result._id});  
    });
  }
});
@@ -365,24 +365,149 @@
 r.reason);%0A%0A
+      // show this result but route anyway%0A      if (result.postExists)%0A        alert('This link has already been posted');%0A%0A
       Router

make url submitions unique