]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Foreign_link.php
Merge branch 'fixes/private_scope_on_tags' into social-master
[quix0rs-gnu-social.git] / classes / Foreign_link.php
index e3f0cf1ee6f205132dd81144e800ba1cd4450331..a964d87fdd9baa19e2a1fd024a74f9d3c5745c6c 100644 (file)
@@ -22,10 +22,6 @@ class Foreign_link extends Managed_DataObject
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
-    /* Static get */
-    function staticGet($k,$v=null)
-    { return Memcached_DataObject::staticGet('Foreign_link',$k,$v); }
-
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
 
@@ -137,7 +133,12 @@ class Foreign_link extends Managed_DataObject
 
     function getUser()
     {
-        return User::staticGet($this->user_id);
+        return User::getKV($this->user_id);
+    }
+
+    function getProfile()
+    {
+        return Profile::getKV('id', $this->user_id);
     }
 
     // Make sure we only ever delete one record at a time