log.warn("Omitting invalid target URL '" + url + "' from bookmark activity generated from feed.", ex);
}
object.put("targetTitle", InputCleaner.stripHtml(entry.getTitle(), MAXLENGTH));
MediaModule media = (MediaModuleImpl) entry.getModule(MediaModule.URI);
if (media != null && media.getMetadata().getThumbnail().length > 0)
{
object.put("thumbnail", InputCleaner.stripHtml(media.getMetadata().getThumbnail()[0].getUrl().toString(),
MAXLENGTH));
}
return object;
}