$search = "https://".$a->get_hostname();
$replace = "http://".$a->get_hostname();
}
- $path = str_replace($search, $replace, $path);
+ $searcharr = array("src='".$search, 'src="'.$search);
+ $replacearr = array("src='".$replace, 'src="'.$replace);
+ $path = str_replace($searcharr, $replacearr, $path);
+
+ //$path = str_replace($search, $replace, $path);
+
return($path);
}
}
}
+ if (($datarray['app'] == "Events") and $entry->actions)
+ foreach ($entry->actions as $action)
+ if ($action->name == "View")
+ $datarray['body'] .= " [url=".$action->link."]".$entry->story."[/url]";
+
// Just as a test - to see if these are the missing entries
//if(trim($datarray['body']) == '')
// $datarray['body'] = $entry->story;
+ // Adding the "story" text to see if there are useful data in it (testing)
+ //if (($datarray['app'] != "Events") and $entry->story)
+ // $datarray['body'] .= "\n".$entry->story;
+
if(trim($datarray['body']) == '') {
logger('facebook: empty body '.$entry->id.' '.print_r($entry, true));
continue;