From 06d446595ec37636296342d6e462cc095abfa7b8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 30 Jun 2015 08:08:02 +0200 Subject: [PATCH] OStatus: By using Qvitter, users can delete items. We can't handle that by now, so we ignore it. --- include/ostatus.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.5