match schemeless activities per the latest activity spec
This commit is contained in:
parent
78351df785
commit
f01e8743fc
2 changed files with 14 additions and 6 deletions
8
boot.php
8
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;
|
||||
}}
|
Loading…
Add table
Add a link
Reference in a new issue