]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Managed_DataObject::newUri was called improperly
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 22 Nov 2015 23:39:49 +0000 (00:39 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 22 Nov 2015 23:39:49 +0000 (00:39 +0100)
plugins/Favorite/FavoritePlugin.php
scripts/upgrade.php

index 438ea803ae999c184f56dc77af9988c86c5906d2..b10a5f06ac9525cef1798250fce92fa6adcc8178 100644 (file)
@@ -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));
index 06a2f74771bb8e2be374a38434e30a45f1f9b098..cfdd260591a6198ea9068ad0bfdc215949ca5b12 100755 (executable)
@@ -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) {