From: Philipp Holzer Date: Thu, 24 Oct 2019 22:34:46 +0000 (+0200) Subject: Move Namespace of ActivityNamespace X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7343ee510826e981a80c8db1da86d2aa524a488d;p=friendica.git Move Namespace of ActivityNamespace --- diff --git a/mod/salmon.php b/mod/salmon.php index 2a7c4a4b3d..313c2cb0bb 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -9,7 +9,7 @@ use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Database\DBA; use Friendica\Model\Contact; -use Friendica\Protocol\Activity\ActivityNamespace; +use Friendica\Protocol\ActivityNamespace; use Friendica\Protocol\OStatus; use Friendica\Protocol\Salmon; use Friendica\Util\Crypto; diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 77fa3959a5..1028bfd531 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -8,7 +8,7 @@ use Friendica\Core\Renderer; use Friendica\Database\DBA; use Friendica\Model\Photo; use Friendica\Model\User; -use Friendica\Protocol\Activity\ActivityNamespace; +use Friendica\Protocol\ActivityNamespace; use Friendica\Protocol\Salmon; use Friendica\Util\Strings; diff --git a/src/Network/Probe.php b/src/Network/Probe.php index e63224411f..80fa641ed4 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -18,7 +18,7 @@ use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Profile; -use Friendica\Protocol\Activity\ActivityNamespace; +use Friendica\Protocol\ActivityNamespace; use Friendica\Protocol\ActivityPub; use Friendica\Protocol\Email; use Friendica\Protocol\Feed; diff --git a/src/Protocol/Activity.php b/src/Protocol/Activity.php index d2c5eec4b3..bea2dedb09 100644 --- a/src/Protocol/Activity.php +++ b/src/Protocol/Activity.php @@ -2,7 +2,7 @@ namespace Friendica\Protocol; -use Friendica\Protocol\Activity\ActivityNamespace; +use Friendica\Protocol\ActivityNamespace; /** * Base class for the Activity Verbs diff --git a/src/Protocol/Activity/ActivityNamespace.php b/src/Protocol/Activity/ActivityNamespace.php deleted file mode 100644 index a821f069e1..0000000000 --- a/src/Protocol/Activity/ActivityNamespace.php +++ /dev/null @@ -1,132 +0,0 @@ - $item["thr-parent"], 'uid' => $item["uid"]]); diff --git a/tests/src/Protocol/ActivityTest.php b/tests/src/Protocol/ActivityTest.php index 5249ebefaf..a3e9c11487 100644 --- a/tests/src/Protocol/ActivityTest.php +++ b/tests/src/Protocol/ActivityTest.php @@ -3,6 +3,7 @@ namespace Friendica\Test\Protocol; use Friendica\Protocol\Activity; +use Friendica\Protocol\ActivityNamespace; use Friendica\Test\MockedTest; class ActivityTest extends MockedTest @@ -22,7 +23,7 @@ class ActivityTest extends MockedTest ], 'withNamespace' => [ 'haystack' => 'tagterm', - 'needle' => Activity\ActivityNamespace::ACTIVITY_SCHEMA . Activity\ObjectType::TAGTERM, + 'needle' => ActivityNamespace::ACTIVITY_SCHEMA . Activity\ObjectType::TAGTERM, 'assert' => true, ], 'invalidSimple' => [ @@ -37,7 +38,7 @@ class ActivityTest extends MockedTest ], 'withSubPath' => [ 'haystack' => 'tagterm', - 'needle' => Activity\ActivityNamespace::ACTIVITY_SCHEMA . '/bla/' . Activity\ObjectType::TAGTERM, + 'needle' => ActivityNamespace::ACTIVITY_SCHEMA . '/bla/' . Activity\ObjectType::TAGTERM, 'assert' => true, ], ];