Fixed a bug in AllPostsHandler

main
Inga 🏳‍🌈 15 years ago
parent cad67ca2b6
commit e7c6c7867a
  1. 5
      IISMainHandler/handlers/response/AllPostsHandler.cs

@ -26,7 +26,7 @@ namespace FLocal.IISHandler.handlers.response {
context.userSettings.postsPerPage, context.userSettings.postsPerPage,
1 1
); );
IEnumerable<Post> posts = IEnumerable<Post> posts = Post.LoadByIds(
from stringId from stringId
in Config.instance.mainConnection.LoadIdsByConditions( in Config.instance.mainConnection.LoadIdsByConditions(
Post.TableSpec.instance, Post.TableSpec.instance,
@ -44,7 +44,8 @@ namespace FLocal.IISHandler.handlers.response {
) )
} }
) )
select Post.LoadById(int.Parse(stringId)); select int.Parse(stringId)
);
XElement[] result = new XElement[] { XElement[] result = new XElement[] {
new XElement("posts", new XElement("posts",

Loading…
Cancel
Save