Skip to content

Commit 6f9647b

Browse files
committed
Remove invalid options from conversation_stat.go
1 parent b2a93cd commit 6f9647b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

models/conversations/conversation_stat.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,6 @@ func applyConversationsOptions(sess *xorm.Session, opts *ConversationsOptions, c
143143
sess.In("conversation.id", conversationIDs)
144144
}
145145

146-
if opts.PosterID > 0 {
147-
applyPosterCondition(sess, opts.PosterID)
148-
}
149-
150-
if opts.MentionedID > 0 {
151-
applyMentionedCondition(sess, opts.MentionedID)
152-
}
153-
154-
if opts.IsPull.Has() {
155-
sess.And("conversation.is_pull=?", opts.IsPull.Value())
156-
}
157-
158146
return sess
159147
}
160148

0 commit comments

Comments
 (0)