Filter on PostId>10M on UserReplies page

main
Inga 🏳‍🌈 15 years ago
parent 462a07e6e2
commit 2e866a787c
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 16
      Common/dataobjects/User.cs

@ -233,10 +233,18 @@ namespace FLocal.Common.dataobjects {
return Post.LoadByIds(
from stringId in Config.instance.mainConnection.LoadIdsByConditions(
Post.TableSpec.instance,
new ComparisonCondition(
parent.additionalTable.getColumnSpec(Post.TableSpec.FIELD_POSTERID),
ComparisonType.EQUAL,
this.id.ToString()
new ComplexCondition(
ConditionsJoinType.AND,
new ComparisonCondition(
parent.additionalTable.getColumnSpec(Post.TableSpec.FIELD_POSTERID),
ComparisonType.EQUAL,
this.id.ToString()
),
new ComparisonCondition(
Post.TableSpec.instance.getIdSpec(),
ComparisonType.GREATEROREQUAL,
Thread.FORMALREADMIN.ToString()
)
),
diapasone,
new JoinSpec[] {

Loading…
Cancel
Save