Merge pull request #3710 from annando/diaspora-retraction
Diaspora: Sending retractions only worked for posts
This commit is contained in:
commit
af44e96fc9
1 changed files with 8 additions and 1 deletions
|
@ -3526,7 +3526,14 @@ class Diaspora {
|
||||||
$itemaddr = self::handle_from_contact($item["contact-id"], $item["gcontact-id"]);
|
$itemaddr = self::handle_from_contact($item["contact-id"], $item["gcontact-id"]);
|
||||||
|
|
||||||
$msg_type = "retraction";
|
$msg_type = "retraction";
|
||||||
|
|
||||||
|
if ($item['id'] == $item['parent']) {
|
||||||
$target_type = "Post";
|
$target_type = "Post";
|
||||||
|
} elseif ($item["verb"] == ACTIVITY_LIKE) {
|
||||||
|
$target_type = "Like";
|
||||||
|
} else {
|
||||||
|
$target_type = "Comment";
|
||||||
|
}
|
||||||
|
|
||||||
$message = array("author" => $itemaddr,
|
$message = array("author" => $itemaddr,
|
||||||
"target_guid" => $item['guid'],
|
"target_guid" => $item['guid'],
|
||||||
|
|
Loading…
Reference in a new issue