Even more standards

pull/631/head
Michael 2018-06-28 16:39:25 +00:00
parent a39b9b47d2
commit a4b61a4157
1 changed files with 7 additions and 7 deletions

View File

@ -451,11 +451,11 @@ function pumpio_send(&$a, &$b)
} }
if (($b['verb'] == ACTIVITY_POST) && ($b['created'] !== $b['edited']) && !$b['deleted']) { if (($b['verb'] == ACTIVITY_POST) && ($b['created'] !== $b['edited']) && !$b['deleted']) {
pumpio_action($a, $b["uid"], $b["uri"], "update", $b["body"]); pumpio_action($a, $b["uid"], $b["uri"], "update", $b["body"]);
} }
if (($b['verb'] == ACTIVITY_POST) && $b['deleted']) { if (($b['verb'] == ACTIVITY_POST) && $b['deleted']) {
pumpio_action($a, $b["uid"], $b["uri"], "delete"); pumpio_action($a, $b["uid"], $b["uri"], "delete");
} }
if ($b['deleted'] || ($b['created'] !== $b['edited'])) { if ($b['deleted'] || ($b['created'] !== $b['edited'])) {
@ -491,8 +491,8 @@ function pumpio_send(&$a, &$b)
if (!$iscomment) { if (!$iscomment) {
$params["object"] = [ $params["object"] = [
'objectType' => "note", 'objectType' => "note",
'content' => $content]; 'content' => $content];
if ($title != "") { if ($title != "") {
$params["object"]["displayName"] = $title; $params["object"]["displayName"] = $title;
@ -522,9 +522,9 @@ function pumpio_send(&$a, &$b)
} }
$params["object"] = [ $params["object"] = [
'objectType' => "comment", 'objectType' => "comment",
'content' => $content, 'content' => $content,
'inReplyTo' => $inReplyTo]; 'inReplyTo' => $inReplyTo];
if ($title != "") { if ($title != "") {
$params["object"]["displayName"] = $title; $params["object"]["displayName"] = $title;