Skip to content
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

get_channel_moderator/2 in stream_moderation.ex returns unauthorized on new mod creation #851

Open
mja00 opened this issue Jun 18, 2022 · 0 comments

Comments

@mja00
Copy link
Member

mja00 commented Jun 18, 2022

Looks for some reason the chan_mod variable isn't fully initialized when this function is called right after a moderator is created, which throws a fake unauthorized error.

https://github.com/Glimesh/glimesh.tv/blob/dev/lib/glimesh/stream_moderation.ex#L26= is the line that it happens on.

Not really too sure why this would return nil unless it's just too fast and the DB hasn't updated yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant