mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
consider <p></p> as an empty message (#1264)
This commit is contained in:
@ -73,7 +73,7 @@ func (m *MessageEvent) RenderAndSanitizeMessageBody() {
|
||||
|
||||
// Empty will return if this message's contents is empty.
|
||||
func (m *MessageEvent) Empty() bool {
|
||||
return m.Body == ""
|
||||
return m.Body == "" || m.Body == "<p></p>"
|
||||
}
|
||||
|
||||
// RenderBody will render markdown to html without any sanitization.
|
||||
|
||||
Reference in New Issue
Block a user