mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Diaspora: Sending retractions only worked for posts - nor for comments or likes
This commit is contained in:
parent
7e193cfb7a
commit
ef8ad9f1ed
1 changed files with 8 additions and 1 deletions
|
@ -3525,7 +3525,14 @@ class Diaspora {
|
|||
$itemaddr = self::handle_from_contact($item["contact-id"], $item["gcontact-id"]);
|
||||
|
||||
$msg_type = "retraction";
|
||||
$target_type = "Post";
|
||||
|
||||
if ($item['id'] == $item['parent']) {
|
||||
$target_type = "Post";
|
||||
} elseif ($item["verb"] == ACTIVITY_LIKE) {
|
||||
$target_type = "Like";
|
||||
} else {
|
||||
$target_type = "Comment";
|
||||
}
|
||||
|
||||
$message = array("author" => $itemaddr,
|
||||
"target_guid" => $item['guid'],
|
||||
|
|
Loading…
Reference in a new issue