forked from GNUsocial/gnu-social
Working on some RSVP code stuff
This commit is contained in:
@@ -350,7 +350,7 @@ class ActivityUtils
|
||||
|
||||
static function compareTypes($type, $objects)
|
||||
{
|
||||
$type = self::resolveUri($type);
|
||||
$type = self::resolveUri($type, false);
|
||||
foreach ((array)$objects as $object) {
|
||||
if ($type === self::resolveUri($object)) {
|
||||
return true;
|
||||
@@ -367,6 +367,7 @@ class ActivityUtils
|
||||
static function resolveUri($uri, $make_relative=false)
|
||||
{
|
||||
if (empty($uri)) {
|
||||
common_debug(_ve(debug_backtrace()));
|
||||
throw new ServerException('No URI to resolve in ActivityUtils::resolveUri');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user