*/
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';
*
* @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)) {
*
* @return boolean
*/
- public function match(string $haystack, string $needle)
+ public function match(string $haystack, string $needle): bool
{
return (($haystack === $needle) ||
((basename($needle) === $haystack) &&