forked from GNUsocial/gnu-social
method to check if a profile has forwarded a notice
This commit is contained in:
parent
7dd0f2fa9c
commit
c49ece9fb4
@ -716,4 +716,12 @@ class Profile extends Memcached_DataObject
|
|||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hasForwarded($notice_id)
|
||||||
|
{
|
||||||
|
$forward = Forward::pkeyGet(array('profile_id' => $this->id,
|
||||||
|
'notice_id' => $notice_id));
|
||||||
|
|
||||||
|
return (!empty($forward));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user