mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
reject user messages when offline (#1269)
This commit is contained in:
parent
fac06257ad
commit
44f406caf0
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,11 @@ func (s *ChatServer) userMessageSent(eventData chatClientEvent) {
|
|||
return
|
||||
}
|
||||
|
||||
// Ignore if the stream in offline
|
||||
if !getStatus().Online {
|
||||
return
|
||||
}
|
||||
|
||||
event.User = user.GetUserByToken(eventData.client.accessToken)
|
||||
|
||||
// Guard against nil users
|
||||
|
|
Loading…
Reference in a new issue