pumpio: Only public posts will be mirrored

pull/121/head
Michael Vogel 2013-05-16 23:36:05 +02:00
parent 0d6a2e7e93
commit 09bb2d5cf6
1 changed files with 14 additions and 1 deletions

View File

@ -458,7 +458,20 @@ function pumpio_fetchtimeline($a, $uid) {
if ($first_time)
continue;
if (!strstr($post->generator->displayName, $application_name)) {
$receiptians = array();
if (@is_array($post->cc))
$receiptians = array_merge($receiptians, $post->cc);
if (@is_array($post->to))
$receiptians = array_merge($receiptians, $post->to);
$public = false;
foreach ($receiptians AS $receiver)
if (is_string($receiver->objectType))
if ($receiver->id == "http://activityschema.org/collection/public")
$public = true;
if ($public AND !strstr($post->generator->displayName, $application_name)) {
require_once('include/html2bbcode.php');
$_SESSION["authenticated"] = true;