From 32977d95805d53129860cb7b9e4569e3b3ad612e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 11 Oct 2025 23:55:00 +0800 Subject: [PATCH] :bug: Fix post controller does not contains publisher in success created response --- DysonNetwork.Sphere/Post/PostController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/Post/PostController.cs b/DysonNetwork.Sphere/Post/PostController.cs index 60a851a..3413276 100644 --- a/DysonNetwork.Sphere/Post/PostController.cs +++ b/DysonNetwork.Sphere/Post/PostController.cs @@ -513,6 +513,8 @@ public class PostController( IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString() }); + post.Publisher = publisher; + return post; } @@ -881,7 +883,7 @@ public class PostController( UserAgent = Request.Headers.UserAgent, IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString() }); - + return Ok(post); }