Skip to content

Commit

Permalink
patch for openThread bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjh-bst committed Jul 17, 2024
1 parent 73f1586 commit d18ec62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/templates/context_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,8 @@ func (c *Context) tmplOpenThread(cID int64) (string, error) {
return "", errors.New("unable to get thread")
}

if !thread.Type.IsThread() {
return "", errors.New("not a thread")
if thread.GuildID != c.GS.ID || !thread.Type.IsThread() {
return "", errors.New("not a valid thread")
}

falseVar := false
Expand Down

0 comments on commit d18ec62

Please sign in to comment.