Merge pull request #9713 from annando/annando/issue9712

Comment to Twitter post is posted to AP instead
pull/9717/head
Tobias Diekershoff 2020-12-28 08:08:02 +01:00 zatwierdzone przez GitHub
commit cf65725373
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -766,6 +766,11 @@ class Notifier
*/
private static function activityPubDelivery($cmd, array $target_item, array $parent, array $thr_parent, $priority, $created, $owner)
{
// Don't deliver via AP when the starting post isn't from a federated network
if (!in_array($parent['network'], Protocol::FEDERATED)) {
return 0;
}
// Don't deliver via AP when the starting post is delivered via Diaspora
if ($parent['network'] == Protocol::DIASPORA) {
return 0;