diff options
author | Evan Prodromou <evan@status.net> | 2009-12-08 17:20:17 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-08 17:20:17 -0500 |
commit | c49ece9fb40c68e6d6a47343208dc3da5726cf44 (patch) | |
tree | dd15e48c5122a165750a17ce798fb1a3718a1b6e | |
parent | 7dd0f2fa9c8e9332c5ff481c93b53169c2510ff7 (diff) |
method to check if a profile has forwarded a notice
-rw-r--r-- | classes/Profile.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index 4b2e09006..4c14f62a0 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)); + } } |