We should send "Post"
This commit is contained in:
parent
80a41922a9
commit
d3b626a266
1 changed files with 2 additions and 4 deletions
|
@ -3247,16 +3247,14 @@ class Diaspora
|
||||||
$first_user = dba::select('user', ['uid'], $condition, ['limit' => 1]);
|
$first_user = dba::select('user', ['uid'], $condition, ['limit' => 1]);
|
||||||
$owner = User::getOwnerDataById($first_user['uid']);
|
$owner = User::getOwnerDataById($first_user['uid']);
|
||||||
|
|
||||||
$parent_type = (self::isReshare($item['body']) ? 'Reshare' : 'StatusMessage');
|
|
||||||
|
|
||||||
$author = self::myHandle($owner);
|
$author = self::myHandle($owner);
|
||||||
|
|
||||||
$message = array("author" => $author,
|
$message = array("author" => $author,
|
||||||
"guid" => get_guid(32),
|
"guid" => get_guid(32),
|
||||||
"parent_type" => $parent_type,
|
"parent_type" => "Post",
|
||||||
"parent_guid" => $item["guid"]);
|
"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
|
// 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);
|
Cache::set($cachekey, $item["guid"], CACHE_QUARTER_HOUR);
|
||||||
|
|
Loading…
Reference in a new issue