fixes a 500 in prod and the associated test

This commit is contained in:
Paul Schneider 2026-08-21 16:58:27 +01:00
commit b82b6722c7
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
3 changed files with 20 additions and 15 deletions

View file

@ -2,6 +2,7 @@ using System.Net;
using System.Net.Http;
using System.Net.Http.Json;
using Microsoft.Extensions.DependencyInjection;
using Yavsc.Abstract.BlogSpot;
using Yavsc.Models;
using Yavsc.Models.Access;
using Yavsc.Models.Blog;
@ -186,11 +187,11 @@ public sealed class BlogAclApiTests : IClassFixture<BlogsWebServerFixture>
var postId = SeedBlogPost("alice", "Billet ACL test");
using var http = NewClient("alice");
// Exact wire shape PostIt sends today:
// { "circleId": <id> } — no blogPostId, no comment.
var payload = new Dictionary<string, object>
var payload = new PostAccessControlRulePayload
{
["circleId"] = circleId,
CircleId = circleId,
BlogPostId = postId
};
var response = await http.PostAsJsonAsync(BlogAclUrl(), payload);