commit ea3de3e2c50de3be166b6d148a458ba4194db126
Author: Wim <wim@42.be>
Date: Sat Mar 11 18:55:29 2023 +0000
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 2b44dcf..be24ba1 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -1617 +1617 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) {
if err != nil {
b.Log.Errorf("getting post %s failed: %s", msg.ParentID, err)
}
- if post.RootId != "" {
+ if post != nil && post.RootId != "" {
msg.ParentID = post.RootId
}
}