Working on some RSVP code stuff

This commit is contained in:
Mikael Nordfeldth
2016-01-21 02:10:34 +01:00
parent 5999171c11
commit f74d2d555c
10 changed files with 126 additions and 66 deletions

View File

@@ -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');
}