OStatus: By using Qvitter, users can delete items. We can't handle that by now, so we ignore it.

pull/1717/head
Michael Vogel 2015-06-30 08:08:02 +02:00
rodzic 28f0e9a2de
commit 06d446595e
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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;