X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile.php;h=03196447b891e31ef5b09e7af9d97b6942cf24dd;hb=530673b3cd79d2d3f1b51b013d2b764d751bc7a2;hp=4b2e0900647b29a20204ed63345a6665e2df69c5;hpb=f3628afa006d8aacd98166d5bb9ffec8b1a74aff;p=quix0rs-gnu-social.git diff --git a/classes/Profile.php b/classes/Profile.php index 4b2e090064..03196447b8 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); + } }