+ if (intval(get_pconfig($b['uid'],'wppost','shortcheck'))) {
+ // Checking, if its a post that is worth a blog post
+ $postentry = false;
+ $siteinfo = get_attached_data($b["body"]);
+
+ // Is it a link to an aricle, a video or a photo?
+ if (isset($siteinfo["type"])) {
+ if (in_array($siteinfo["type"], array("link", "audio", "video", "photo"))) {
+ $postentry = true;
+ }
+ }
+
+ // Does it have a title?
+ if ($wptitle != "") {
+ $postentry = true;
+ }
+
+ // Is it larger than 500 characters?
+ if (strlen($b['body']) > 500) {
+ $postentry = true;
+ }
+
+ if (!$postentry) {
+ return;
+ }
+ }
+