Browse Source

Merge pull request #3320 from Hypolite/issue/#3292

Ignore Activity Streams `delete` messages from Mastodon
pull/3332/head
Michael Vogel 4 years ago
committed by GitHub
parent
commit
8398270cee
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      boot.php
  2. +1
    -1
      include/ostatus.php

+ 1
- 0
boot.php View File

@ -382,6 +382,7 @@ define ( 'ACTIVITY_UPDATE', NAMESPACE_ACTIVITY_SCHEMA . 'update' );
define ( 'ACTIVITY_TAG', NAMESPACE_ACTIVITY_SCHEMA . 'tag' );
define ( 'ACTIVITY_FAVORITE', NAMESPACE_ACTIVITY_SCHEMA . 'favorite' );
define ( 'ACTIVITY_SHARE', NAMESPACE_ACTIVITY_SCHEMA . 'share' );
define ( 'ACTIVITY_DELETE', NAMESPACE_ACTIVITY_SCHEMA . 'delete' );
define ( 'ACTIVITY_POKE', NAMESPACE_ZOT . '/activity/poke' );
define ( 'ACTIVITY_MOOD', NAMESPACE_ZOT . '/activity/mood' );


+ 1
- 1
include/ostatus.php View File

@ -367,7 +367,7 @@ class ostatus {
/// @TODO
/// Delete a message
if ($item["verb"] == "qvitter-delete-notice") {
if ($item["verb"] == "qvitter-delete-notice" || $item["verb"] == ACTIVITY_DELETE) {
// ignore "Delete" messages (by now)
logger("Ignore delete message ".print_r($item, true));
continue;


Loading…
Cancel
Save