diff options
author | Evan Prodromou <evan@status.net> | 2009-12-11 10:49:26 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-11 10:49:26 -0500 |
commit | 81843f2acd5375a9072d091fd58c6a6af079295e (patch) | |
tree | 00de15d57a7e361408a561b4762f491011d42235 /classes/Profile.php | |
parent | c9649f932153e6636214841858fd265b1476c05b (diff) |
show the repeat form in notice lists
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index 4b2e09006..03196447b 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -716,4 +716,15 @@ class Profile extends Memcached_DataObject } return $result; } + + function hasRepeated($notice_id) + { + // XXX: not really a pkey, but should work + + $notice = Memcached_DataObject::pkeyGet('Notice', + array('profile_id' => $this->id, + 'repeat_of' => $notice_id)); + + return !empty($notice); + } } |