Only 'new' posts are shown on AllPosts page

main
Inga 🏳‍🌈 15 years ago
parent fabf322813
commit 387b9f2725
  1. 20
      IISMainHandler/handlers/response/AllPostsHandler.cs

@ -26,7 +26,25 @@ namespace FLocal.IISHandler.handlers.response {
context.userSettings.postsPerPage, context.userSettings.postsPerPage,
1 1
); );
IEnumerable<Post> posts = from stringId in Config.instance.mainConnection.LoadIdsByConditions(Post.TableSpec.instance, new EmptyCondition(), pageOuter, new JoinSpec[0], new SortSpec[] { new SortSpec(Post.TableSpec.instance.getIdSpec(), false) }) select Post.LoadById(int.Parse(stringId)); IEnumerable<Post> posts =
from stringId
in Config.instance.mainConnection.LoadIdsByConditions(
Post.TableSpec.instance,
new ComparisonCondition(
Post.TableSpec.instance.getIdSpec(),
ComparisonType.GREATEROREQUAL,
Thread.FORMALREADMIN.ToString()
),
pageOuter,
new JoinSpec[0],
new SortSpec[] {
new SortSpec(
Post.TableSpec.instance.getIdSpec(),
false
)
}
)
select Post.LoadById(int.Parse(stringId));
XElement[] result = new XElement[] { XElement[] result = new XElement[] {
new XElement("posts", new XElement("posts",

Loading…
Cancel
Save