From: Mikael Nordfeldth Date: Sun, 22 Nov 2015 23:39:49 +0000 (+0100) Subject: Managed_DataObject::newUri was called improperly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b01484a0a378a97c34d2cd76fe1601873236f817;p=quix0rs-gnu-social.git Managed_DataObject::newUri was called improperly --- diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php index 438ea803ae..b10a5f06ac 100644 --- a/plugins/Favorite/FavoritePlugin.php +++ b/plugins/Favorite/FavoritePlugin.php @@ -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)); diff --git a/scripts/upgrade.php b/scripts/upgrade.php index 06a2f74771..cfdd260591 100755 --- a/scripts/upgrade.php +++ b/scripts/upgrade.php @@ -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) {