🐛 Fix index shows all type of posts in managed page
This commit is contained in:
@@ -5,6 +5,7 @@ using DysonNetwork.Zone.Publication;
|
|||||||
// Add this using statement
|
// Add this using statement
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using NodaTime;
|
using NodaTime;
|
||||||
|
using PostType = DysonNetwork.Shared.Proto.PostType;
|
||||||
|
|
||||||
namespace DysonNetwork.Zone.Pages;
|
namespace DysonNetwork.Zone.Pages;
|
||||||
|
|
||||||
@@ -50,6 +51,8 @@ public class IndexModel(
|
|||||||
PageSize = 5,
|
PageSize = 5,
|
||||||
PublisherId = Site!.PublisherId.ToString(),
|
PublisherId = Site!.PublisherId.ToString(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
request.Types_.Add(PostType.Article);
|
||||||
|
|
||||||
var response = await postClient.ListPostsAsync(request);
|
var response = await postClient.ListPostsAsync(request);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user