Skip to content

Commit

Permalink
凍結または削除ユーザーはストリーミング接続出来ないように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jul 12, 2021
1 parent e81b5d6 commit b028c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/api/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ module.exports = (server: http.Server) => {
const q = request.resourceURL.query as ParsedUrlQuery;
const [user, app] = await authenticate(q.i as string);

if (user?.isSuspended || user?.isDeleted) {
request.reject(400);
return;
}

const connection = request.accept();

connCount++;
Expand Down

0 comments on commit b028c36

Please sign in to comment.