Skip to content

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

Description

@mja00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions