diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-27 15:50:44 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-27 15:50:44 -0700 |
commit | f01e8743fcfd26cc44a6c808418773520c77fe84 (patch) | |
tree | 4d6de6d2bb36ae1188a65e5f413d742e071c7eb5 /boot.php | |
parent | 78351df785aea429619845254c3fe2ddd1983969 (diff) | |
download | volse-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.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |