Removed unneeded stuff

This commit is contained in:
Michael 2017-06-15 21:45:36 +00:00
parent f36ffe3c03
commit a453ae4f66

View File

@ -2502,7 +2502,6 @@ class Diaspora {
case "Comment":
case "Like":
case "Post":
return self::item_retraction($importer, $contact, $data);
case "Reshare":
case "StatusMessage":
return self::item_retraction($importer, $contact, $data);
@ -3645,18 +3644,12 @@ class Diaspora {
$body = bb2diaspora($item["body"]);
$created = datetime_convert("UTC", "UTC", $item["created"], 'Y-m-d\TH:i:s\Z');
$signed_text = $item["guid"].";".$cnv["guid"].";".$body.";".$created.";".$myaddr.";".$cnv['guid'];
$sig = base64_encode(rsa_sign($signed_text, $owner["uprvkey"], "sha256"));
$msg = array(
"author" => $myaddr,
"guid" => $item["guid"],
"conversation_guid" => $cnv["guid"],
"text" => $body,
"created_at" => $created,
//"parent_guid" => $cnv["guid"],
//"parent_author_signature" => $sig,
//"author_signature" => $sig,
);
if ($item["reply"]) {