From d18ec6236402a8e90e107d9d52e0a7191827fd34 Mon Sep 17 00:00:00 2001 From: Ashish Jhanwar Date: Wed, 17 Jul 2024 13:12:27 +0530 Subject: [PATCH] patch for openThread bug --- common/templates/context_funcs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go index b574f7ae45..8ff0a790ce 100644 --- a/common/templates/context_funcs.go +++ b/common/templates/context_funcs.go @@ -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