From: Evan Prodromou Date: Tue, 8 Dec 2009 22:20:17 +0000 (-0500) Subject: method to check if a profile has forwarded a notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c49ece9fb40c68e6d6a47343208dc3da5726cf44;p=quix0rs-gnu-social.git method to check if a profile has forwarded a notice --- diff --git a/classes/Profile.php b/classes/Profile.php index 4b2e090064..4c14f62a06 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -716,4 +716,12 @@ class Profile extends Memcached_DataObject } return $result; } + + function hasForwarded($notice_id) + { + $forward = Forward::pkeyGet(array('profile_id' => $this->id, + 'notice_id' => $notice_id)); + + return (!empty($forward)); + } }