Posts = new Mongo.Collection('posts');

Meteor.methods({
  postInsert: function(postAttributes) {
    check(Meteor.userId(), String);
    check(postAttributes, {
      title: String,
      url: String
    });
    var user = Meteor.user();
    var post = _.extend(postAttributes, {
      userId: user._id, 
      author: user.username, 
      submitted: new Date()
    });
    var postId = Posts.insert(post);
    return {
      _id: postId
    };
  }
});
@@ -194,32 +194,220 @@
  String%0A    %7D);%0A
+%0A    var postWithSameLink = Posts.findOne(%7Burl: postAttributes.url%7D);%0A    if (postWithSameLink) %7B%0A      return %7B%0A        postExists: true,%0A        _id: postWithSameLink._id%0A      %7D%0A    %7D%0A%0A
     var user = M
@@ -549,24 +549,25 @@
 e()%0A    %7D);%0A
+%0A
     var post
@@ -626,15 +626,20 @@
 tId%0A
-
     %7D;%0A
+    %0A
   %7D%0A

Check URL for duplicates