Skip to content

Commit

Permalink
Fix ThreadIDProp being able to be used by others.
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller committed Jan 3, 2024
1 parent 89af0bd commit 9d0a915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (p *Plugin) continueConversation(context ai.ConversationContext) error {
// Special handing for threads started by the bot in response to a summarization request.
var result *ai.TextStreamResult
originalThreadID, ok := threadData.Posts[0].GetProp(ThreadIDProp).(string)
if ok && originalThreadID != "" {
if ok && originalThreadID != "" && threadData.Posts[0].UserId == p.botid {
threadPost, err := p.pluginAPI.Post.GetPost(originalThreadID)
if err != nil {
return err
Expand Down

0 comments on commit 9d0a915

Please sign in to comment.