🐛 Fix index shows all type of posts in managed page

This commit is contained in:
2025-11-22 17:53:52 +08:00
parent 8ccf8100d4
commit 590519c28f

View File

@@ -5,6 +5,7 @@ using DysonNetwork.Zone.Publication;
// Add this using statement
using Microsoft.AspNetCore.Mvc.RazorPages;
using NodaTime;
using PostType = DysonNetwork.Shared.Proto.PostType;
namespace DysonNetwork.Zone.Pages;
@@ -50,6 +51,8 @@ public class IndexModel(
PageSize = 5,
PublisherId = Site!.PublisherId.ToString(),
};
request.Types_.Add(PostType.Article);
var response = await postClient.ListPostsAsync(request);