forked from friendica/friendica-addons
Move Namespace of ActivityNamespace
This commit is contained in:
parent
2c5fe26ae9
commit
65250b3fa5
1 changed files with 5 additions and 5 deletions
|
@ -561,8 +561,8 @@ function pumpio_send(App $a, array &$b)
|
||||||
$inReplyTo = ["id" => $orig_post["uri"],
|
$inReplyTo = ["id" => $orig_post["uri"],
|
||||||
"objectType" => "note"];
|
"objectType" => "note"];
|
||||||
|
|
||||||
if (($orig_post["object-type"] != "") && (strstr($orig_post["object-type"], Activity\ActivityNamespace::ACTIVITY_SCHEMA))) {
|
if (($orig_post["object-type"] != "") && (strstr($orig_post["object-type"], ActivityNamespace::ACTIVITY_SCHEMA))) {
|
||||||
$inReplyTo["objectType"] = str_replace(Activity\ActivityNamespace::ACTIVITY_SCHEMA, '', $orig_post["object-type"]);
|
$inReplyTo["objectType"] = str_replace(ActivityNamespace::ACTIVITY_SCHEMA, '', $orig_post["object-type"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$params["object"] = [
|
$params["object"] = [
|
||||||
|
@ -637,8 +637,8 @@ function pumpio_action(App $a, $uid, $uri, $action, $content = "")
|
||||||
$uri = $orig_post["uri"];
|
$uri = $orig_post["uri"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($orig_post["object-type"] != "") && (strstr($orig_post["object-type"], Activity\ActivityNamespace::ACTIVITY_SCHEMA))) {
|
if (($orig_post["object-type"] != "") && (strstr($orig_post["object-type"], ActivityNamespace::ACTIVITY_SCHEMA))) {
|
||||||
$objectType = str_replace(Activity\ActivityNamespace::ACTIVITY_SCHEMA, '', $orig_post["object-type"]);
|
$objectType = str_replace(ActivityNamespace::ACTIVITY_SCHEMA, '', $orig_post["object-type"]);
|
||||||
} elseif (strstr($uri, "/api/comment/")) {
|
} elseif (strstr($uri, "/api/comment/")) {
|
||||||
$objectType = "comment";
|
$objectType = "comment";
|
||||||
} elseif (strstr($uri, "/api/note/")) {
|
} elseif (strstr($uri, "/api/note/")) {
|
||||||
|
@ -1148,7 +1148,7 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
|
||||||
$postarray['uid'] = $uid;
|
$postarray['uid'] = $uid;
|
||||||
$postarray['wall'] = 0;
|
$postarray['wall'] = 0;
|
||||||
$postarray['uri'] = $post->object->id;
|
$postarray['uri'] = $post->object->id;
|
||||||
$postarray['object-type'] = Activity\ActivityNamespace::ACTIVITY_SCHEMA . strtolower($post->object->objectType);
|
$postarray['object-type'] = ActivityNamespace::ACTIVITY_SCHEMA . strtolower($post->object->objectType);
|
||||||
|
|
||||||
if ($post->object->objectType != "comment") {
|
if ($post->object->objectType != "comment") {
|
||||||
$contact_id = pumpio_get_contact($uid, $post->actor);
|
$contact_id = pumpio_get_contact($uid, $post->actor);
|
||||||
|
|
Loading…
Reference in a new issue