]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Activity.php
Merge pull request #11959 from annando/notice
[friendica.git] / src / Protocol / Activity.php
index e75b1cf507213b00919be6f7560f5a30453da15f..ea1feeefee82c2d4259f05ac3e5c0ea1bc4ee2f8 100644 (file)
@@ -164,15 +164,6 @@ final class Activity
         */
        const ANNOUNCE   = ActivityNamespace::ACTIVITY2 . 'Announce';
 
-       /**
-        * Pokes an user.
-        *
-        * @see https://github.com/friendica/friendica/wiki/ActivityStreams#activity_poke
-        * @var string
-        */
-       const POKE       = ActivityNamespace::ZOT . '/activity/poke';
-
-
        const O_UNFOLLOW    = ActivityNamespace::OSTATUS . '/unfollow';
        const O_UNFAVOURITE = ActivityNamespace::OSTATUS . '/unfavorite';
 
@@ -212,7 +203,7 @@ final class Activity
         *
         * @return bool True, if the activity is hidden
         */
-       public function isHidden(string $activity)
+       public function isHidden(string $activity): bool
        {
                foreach (self::HIDDEN_ACTIVITIES as $hiddenActivity) {
                        if ($this->match($activity, $hiddenActivity)) {
@@ -231,7 +222,7 @@ final class Activity
         *
         * @return boolean
         */
-       public function match(string $haystack, string $needle)
+       public function match(string $haystack, string $needle): bool
        {
                return (($haystack === $needle) ||
                        ((basename($needle) === $haystack) &&