1
0
Fork 0

We should send "Post"

This commit is contained in:
Michael 2017-12-29 19:18:25 +00:00
parent 80a41922a9
commit d3b626a266

View 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);