Removed unneeded stuff
This commit is contained in:
parent
f36ffe3c03
commit
a453ae4f66
|
@ -2502,7 +2502,6 @@ class Diaspora {
|
||||||
case "Comment":
|
case "Comment":
|
||||||
case "Like":
|
case "Like":
|
||||||
case "Post":
|
case "Post":
|
||||||
return self::item_retraction($importer, $contact, $data);
|
|
||||||
case "Reshare":
|
case "Reshare":
|
||||||
case "StatusMessage":
|
case "StatusMessage":
|
||||||
return self::item_retraction($importer, $contact, $data);
|
return self::item_retraction($importer, $contact, $data);
|
||||||
|
@ -3645,18 +3644,12 @@ class Diaspora {
|
||||||
$body = bb2diaspora($item["body"]);
|
$body = bb2diaspora($item["body"]);
|
||||||
$created = datetime_convert("UTC", "UTC", $item["created"], 'Y-m-d\TH:i:s\Z');
|
$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(
|
$msg = array(
|
||||||
"author" => $myaddr,
|
"author" => $myaddr,
|
||||||
"guid" => $item["guid"],
|
"guid" => $item["guid"],
|
||||||
"conversation_guid" => $cnv["guid"],
|
"conversation_guid" => $cnv["guid"],
|
||||||
"text" => $body,
|
"text" => $body,
|
||||||
"created_at" => $created,
|
"created_at" => $created,
|
||||||
//"parent_guid" => $cnv["guid"],
|
|
||||||
//"parent_author_signature" => $sig,
|
|
||||||
//"author_signature" => $sig,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($item["reply"]) {
|
if ($item["reply"]) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user