aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-27 15:50:44 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-27 15:50:44 -0700
commitf01e8743fcfd26cc44a6c808418773520c77fe84 (patch)
tree4d6de6d2bb36ae1188a65e5f413d742e071c7eb5 /boot.php
parent78351df785aea429619845254c3fe2ddd1983969 (diff)
downloadvolse-hubzilla-f01e8743fcfd26cc44a6c808418773520c77fe84.tar.gz
volse-hubzilla-f01e8743fcfd26cc44a6c808418773520c77fe84.tar.bz2
volse-hubzilla-f01e8743fcfd26cc44a6c808418773520c77fe84.zip
match schemeless activities per the latest activity spec
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 5cb091eae..1c74cc156 100644
--- a/boot.php
+++ b/boot.php
@@ -1288,3 +1288,11 @@ function logger($msg) {
@file_put_contents($logfile, datetime_convert() . ':' . session_id() . ' ' . $msg . "\n", FILE_APPEND);
return;
}}
+
+
+if(! function_exists('activity_match')) {
+function activity_match($haystack,$needle) {
+ if(($haystack === $needle) || (($basename($needle) === $haystack) && strstr($needle,NAMESPACE_ACTIVITY_SCHEMA)))
+ return true;
+ return false;
+}} \ No newline at end of file