forked from GNUsocial/gnu-social
method to check if a profile has forwarded a notice
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user