From: Michael Vogel Date: Tue, 30 Jun 2015 06:08:02 +0000 (+0200) Subject: OStatus: By using Qvitter, users can delete items. We can't handle that by now, so... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06d446595ec37636296342d6e462cc095abfa7b8;p=friendica.git OStatus: By using Qvitter, users can delete items. We can't handle that by now, so we ignore it. --- diff --git a/include/ostatus.php b/include/ostatus.php index 10361e87c8..9a65efbaf9 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -200,6 +200,13 @@ function ostatus_import($xml,$importer,&$contact, &$hub) { $item["object"] = $xml; $item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue; + // To-Do: + // Delete a message + if ($item["verb"] == "qvitter-delete-notice") { + // ignore "Delete" messages (by now) + continue; + } + if ($item["verb"] == ACTIVITY_JOIN) { // ignore "Join" messages continue;