diff options
author | Evan Prodromou <evan@status.net> | 2009-12-12 16:18:55 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-12 16:18:55 -0500 |
commit | a5a89f50b8e3f9b99d8ea3a7eff378637b149c7f (patch) | |
tree | 771b39f50b6272f62d08902d25b9fb54eb11937d /classes/Profile.php | |
parent | cc063aedccd614d6e486d88921c7752ec5750551 (diff) | |
parent | 1ec54d3433a79f56c14c0a99114bb1e607348899 (diff) |
Merge branch 'forward' into 0.9.x
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); + } } |