mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
Facebook: Don't add "story". Convpath now converts only pictures
This commit is contained in:
parent
acebf88aa5
commit
6f27beb728
2 changed files with 15 additions and 1 deletions
|
@ -1423,10 +1423,19 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
|||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue