Hello guys
im trying to make a following plugin because there is only
followers plugin any help ?
how i can get the followers instead of followers ?
public function findFollowList($feedId, $first, $count) {
$sql = "SELECT f.userId FROM " . NEWSFEED_BOL_FollowDao::getInstance()->getTableName() . " f JOIN " . BOL_UserDao::getInstance()->getTableName() . " u ON u.id = f.userId WHERE feedType = 'user' AND feedId = $feedId LIMIT $first , $count";
return OW::getDbo()->queryForColumnList($sql); }
public function findFollowCount($feedId) { $sql = "SELECT COUNT(f.userId) FROM " . NEWSFEED_BOL_FollowDao::getInstance()->getTableName() . " f JOIN " . BOL_UserDao::getInstance()->getTableName() . " u ON u.id = f.userId WHERE feedType = 'user' AND feedId = $feedId";
return (int) OW::getDbo()->queryForColumn($sql); }
Thank you ^^