Mark read stuff.
このコミットが含まれているのは:
コミット
f6124cbc7e
|
@ -1008,6 +1008,52 @@ class BoardController extends Controller {
|
|||
}
|
||||
}
|
||||
|
||||
public function getReadCategories (Request $request) { // /api/rpc/board/topic/getreadcategories
|
||||
|
||||
}
|
||||
|
||||
public function getReadForums (Request $request) { // /api/rpc/board/topic/getreadforums
|
||||
|
||||
}
|
||||
|
||||
public function getReadTopics (Request $request) { // /api/rpc/board/topic/getreadtopics
|
||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||
|
||||
if ($check == 0) {
|
||||
return 'Err!';
|
||||
}
|
||||
else {
|
||||
$i = 0;
|
||||
$getTopIdAll = DB::table('for_readposts')
|
||||
->select('top_id', 'last_read')
|
||||
->where('user_id', $check)
|
||||
->get();
|
||||
|
||||
$res = array();
|
||||
|
||||
foreach($getTopIdAll as $t) {
|
||||
$res[] = array(
|
||||
'key' => $i,
|
||||
'uid' => $check,
|
||||
'tid' => $t->top_id,
|
||||
'read' => $t->last_read
|
||||
);
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
|
||||
public function markForumRead ($id, Request $request) { // /api/rpc/board/topic/markforumread/fid
|
||||
|
||||
}
|
||||
|
||||
public function markTopicRead ($id, Request $request) { // /api/rpc/board/topic/marktopicread/tid
|
||||
|
||||
}
|
||||
|
||||
public function undeletePost(Request $request) { // /api/rpc/board/post/undeletepost
|
||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||
|
||||
|
|
新しいイシューから参照