Commit b01484a0 authored by mmn's avatar mmn

Managed_DataObject::newUri was called improperly

parent 16304247
......@@ -96,7 +96,7 @@ class FavoritePlugin extends ActivityVerbHandlerPlugin
' modified = "%s" '.
'WHERE user_id = %d '.
'AND notice_id = %d',
Fave::newUri($fave->user_id, $fave->notice_id, $fave->modified),
Fave::newUri($fave->getActor(), $fave->getTarget(), $fave->modified),
common_sql_date(strtotime($fave->modified)),
$fave->user_id,
$fave->notice_id));
......
......@@ -333,7 +333,7 @@ function initSubscriptionURI()
'set uri = "%s" '.
'where subscriber = %d '.
'and subscribed = %d',
Subscription::newURI($sub->subscriber, $sub->subscribed, $sub->created),
$sub->escape(Subscription::newUri($sub->getSubscriber(), $sub->getSubscribed(), $sub->created)),
$sub->subscriber,
$sub->subscribed));
} catch (Exception $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment