forked from GNUsocial/gnu-social
Call it compareVerbs when comparing verbs
This commit is contained in:
@@ -348,7 +348,7 @@ class ActivityUtils
|
||||
return null;
|
||||
}
|
||||
|
||||
static function compareTypes($type, $objects) // this does verbs too!
|
||||
static function compareTypes($type, $objects)
|
||||
{
|
||||
$type = self::resolveUri($type);
|
||||
foreach ((array)$objects as $object) {
|
||||
@@ -359,6 +359,11 @@ class ActivityUtils
|
||||
return false;
|
||||
}
|
||||
|
||||
static function compareVerbs($type, $objects)
|
||||
{
|
||||
return self::compareTypes($type, $objects);
|
||||
}
|
||||
|
||||
static function resolveUri($uri, $make_relative=false)
|
||||
{
|
||||
if (empty($uri)) {
|
||||
|
||||
Reference in New Issue
Block a user