From f5104f3e46d27e6535bd8a07a98ead5b0c6755a8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 15 Sep 2018 20:48:24 +0000 Subject: [PATCH] Removed harcoded host names --- src/Protocol/ActivityPub.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 73d5231d7..df6b0342b 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -39,11 +39,11 @@ use Friendica\Network\Probe; * To-do: * * Receiver: - * - Activities: Undo, Update + * - Activities: Dislike, Update, Delete * - Object Types: Person, Tombstome * * Transmitter: - * - Activities: Like, Dislike, Update, Undo + * - Activities: Like, Dislike, Update, Delete * - Object Tyoes: Article, Announce, Person, Tombstone * * General: @@ -204,7 +204,7 @@ class ActivityPub $owner = User::getOwnerDataById($uid); $data = ['@context' => 'https://www.w3.org/ns/activitystreams', - 'id' => 'https://pirati.ca/activity/' . System::createGUID(), + 'id' => System::baseUrl() . '/activity/' . System::createGUID(), 'type' => $activity, 'actor' => $owner['url'], 'object' => $profile['url']]; @@ -219,7 +219,7 @@ class ActivityPub $owner = User::getOwnerDataById($uid); $data = ['@context' => 'https://www.w3.org/ns/activitystreams', - 'id' => 'https://pirati.ca/activity/' . System::createGUID(), + 'id' => System::baseUrl() . '/activity/' . System::createGUID(), 'type' => 'Accept', 'actor' => $owner['url'], 'object' => ['id' => $id, 'type' => 'Follow', @@ -235,12 +235,12 @@ class ActivityPub $profile = Probe::uri($target, Protocol::ACTIVITYPUB); if (empty($id)) { - $id = 'https://pirati.ca/activity/' . System::createGUID(); + $id = System::baseUrl() . '/activity/' . System::createGUID(); } $owner = User::getOwnerDataById($uid); $data = ['@context' => 'https://www.w3.org/ns/activitystreams', - 'id' => 'https://pirati.ca/activity/' . System::createGUID(), + 'id' => System::baseUrl() . '/activity/' . System::createGUID(), 'type' => 'Undo', 'actor' => $owner['url'], 'object' => ['id' => $id, 'type' => 'Follow',