]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
getID() will complain loudly if something is wrong
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:44:59 +0000 (21:44 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Dec 2015 20:44:59 +0000 (21:44 +0100)
(just ->id would not)

classes/Profile.php
plugins/Share/SharePlugin.php

index 2ed48c2b4564f3b32f43337c62fd3c482226bb4d..78ef18484c7e0d9f7c9f2559cb419783f39fd1ad 100644 (file)
@@ -1242,8 +1242,8 @@ class Profile extends Managed_DataObject
     {
         // XXX: not really a pkey, but should work
 
-        $notice = Notice::pkeyGet(array('profile_id' => $this->id,
-                                        'repeat_of' => $notice->id,
+        $notice = Notice::pkeyGet(array('profile_id' => $this->getID(),
+                                        'repeat_of' => $notice->getID(),
                                         'verb' => ActivityVerb::SHARE));
 
         return !empty($notice);
@@ -1663,4 +1663,4 @@ class Profile extends Managed_DataObject
     {
         return $this->getUser()->getConnectedApps($offset, $limit);
     }
-}
\ No newline at end of file
+}
index afee7a6ef332454bf85c94cb3889c23016b37f85..84174a0440895d597e657d99f014b04bf66e573b 100644 (file)
@@ -371,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin
 
         return true;
     }
-}
\ No newline at end of file
+}