forked from GNUsocial/gnu-social
Managed_DataObject::newUri was called improperly
This commit is contained in:
parent
1630424797
commit
b01484a0a3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user