import { addCallback } from 'meteor/vulcan:core'; function addThumbnailClass (postClass, post) { var thumbnailClass = !!post.thumbnailUrl ? "has-thumbnail" : "no-thumbnail"; return postClass + " " + thumbnailClass; } // add callback that adds "has-thumbnail" or "no-thumbnail" CSS classes addCallback("postClass", addThumbnailClass); function checkIfPreviouslyPosted (data) { Meteor.call("checkForDuplicates", data.url, function (error, result) { if (error) { // Messages.flash(error.reason + '. '+"go_to_post"+''); } }); return data; } addCallback("afterEmbedlyPrefill", checkIfPreviouslyPosted);