From c88fd73b80db50c60304fe8924a4679f42c3961a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 1 Mar 2016 19:10:35 +0100 Subject: [PATCH] Just another commit message :-) --- include/diaspora.php | 6 +++--- include/diaspora2.php | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index f139418fe4..4cd36e9a02 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -146,9 +146,9 @@ function diaspora_dispatch($importer,$msg,$attempt=1) { $ret = diaspora_participation($importer,$xmlbase->participation); } elseif($xmlbase->poll_participation) { - $tempfile = tempnam(get_temppath(), "diaspora-poll_participation"); - file_put_contents($tempfile, json_encode($data)); - $ret = diaspora_participation($importer,$xmlbase->participation); + //$tempfile = tempnam(get_temppath(), "diaspora-poll_participation"); + //file_put_contents($tempfile, json_encode($data)); + $ret = diaspora_participation($importer,$xmlbase->poll_participation); } else { $tempfile = tempnam(get_temppath(), "diaspora-unknown"); diff --git a/include/diaspora2.php b/include/diaspora2.php index a1297c5193..e8ed80ee80 100644 --- a/include/diaspora2.php +++ b/include/diaspora2.php @@ -131,7 +131,8 @@ class diaspora { return self::import_request($importer, $fields); case "reshare": - return self::import_reshare($importer, $fields); + return true; + //return self::import_reshare($importer, $fields); case "retraction": return self::import_retraction($importer, $fields); @@ -676,6 +677,8 @@ class diaspora { } private function import_conversation($importer, $data) { + print_r($data); + die(); /* $guid = notags(unxmlify($xml->guid)); $subject = notags(unxmlify($xml->subject)); @@ -874,9 +877,8 @@ EOT; if ($parent_type !== "Post") return false; - // "positive" = "false" doesn't seem to be supported by Diaspora + // "positive" = "false" would be a Dislike - wich isn't currently supported by Diaspora if ($positive === "false") { - logger("Received a like with positive set to 'false' - this shouldn't exist at all"); return false; }