|
@@ -21,6 +21,14 @@ Meteor.methods({
|
|
url: String
|
|
url: String
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ if (Meteor.isServer) {
|
|
|
|
+ postAttributes.title += " (server)";
|
|
|
|
+ Meteor._sleepForMs(5000);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ postAttributes.title += " (client)";
|
|
|
|
+ }
|
|
|
|
+
|
|
var postWithSameLink = Posts.findOne({ url: postAttributes.url });
|
|
var postWithSameLink = Posts.findOne({ url: postAttributes.url });
|
|
if (postWithSameLink) {
|
|
if (postWithSameLink) {
|
|
|
|
|