]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Move activity_match() to Protocol\Activity::match()
[friendica.git] / include / text.php
index 84efebac2de123fe2738f96e7a79a60b2a1d2e88..775931c6ff82c1578989cf4b05602ca513c3819a 100644 (file)
@@ -3,20 +3,8 @@
  * @file include/text.php
  */
 
-use Friendica\Content\Text\BBCode;
 use Friendica\Model\FileTag;
 
-/**
- * Compare activity uri. Knows about activity namespace.
- *
- * @param string $haystack
- * @param string $needle
- * @return boolean
- */
-function activity_match($haystack,$needle) {
-       return (($haystack === $needle) || ((basename($needle) === $haystack) && strstr($needle, NAMESPACE_ACTIVITY_SCHEMA)));
-}
-
 /**
  * return array with details for categories and folders for an item
  *