-
Notifications
You must be signed in to change notification settings - Fork 7
[Broadcaster] Add chat moderation capabilities #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| socket = | ||
| socket | ||
| |> assign(:nickname, nickname) | ||
| |> assign(:id, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better start with a random value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, I'll use a unique id to create the message id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick:
| |> assign(:id, 0) | |
| |> assign(:msg_cnt, 0) |
| socket = | ||
| socket | ||
| |> assign(:nickname, nickname) | ||
| |> assign(:id, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick:
| |> assign(:id, 0) | |
| |> assign(:msg_cnt, 0) |
| scope "/admin" do | ||
| pipe_through :auth | ||
|
|
||
| delete "/chat/:id", PageController, :delete_chat_message | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can merge this with already exisiting scoep "admin", can't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The admin scope is piped through :browser, so we cannot use it for that. I could refactor the admin scope a bit, but I'm not sure if it's worth it.
It also renames
/admin/playerto/admin/panel.