From d3b626a2669b197720afeb80214a949a7a5626f4 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 29 Dec 2017 19:18:25 +0000 Subject: [PATCH] We should send "Post" --- src/Protocol/Diaspora.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index bf60272703..aa80460cdb 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -3247,16 +3247,14 @@ class Diaspora $first_user = dba::select('user', ['uid'], $condition, ['limit' => 1]); $owner = User::getOwnerDataById($first_user['uid']); - $parent_type = (self::isReshare($item['body']) ? 'Reshare' : 'StatusMessage'); - $author = self::myHandle($owner); $message = array("author" => $author, "guid" => get_guid(32), - "parent_type" => $parent_type, + "parent_type" => "Post", "parent_guid" => $item["guid"]); - logger("Send participation for ".$parent_type." ".$item["guid"]." by ".$author, LOGGER_DEBUG); + logger("Send participation for ".$item["guid"]." by ".$author, LOGGER_DEBUG); // It doesn't matter what we store, we only want to avoid sending repeated notifications for the same item Cache::set($cachekey, $item["guid"], CACHE_QUARTER_HOUR); -- 2.39.5