]> git.mxchange.org Git - friendica.git/commitdiff
We should send "Post"
authorMichael <heluecht@pirati.ca>
Fri, 29 Dec 2017 19:18:25 +0000 (19:18 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 29 Dec 2017 19:18:25 +0000 (19:18 +0000)
src/Protocol/Diaspora.php

index bf6027270308136be47f7f5e62047a3e78532e47..aa80460cdb8fd920d437ee5dafa4eda37aebbd91 100644 (file)
@@ -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);