🐛 Fix post controller does not contains publisher in success created response

This commit is contained in:
2025-10-11 23:55:00 +08:00
parent aaf29e7228
commit 32977d9580

View File

@@ -513,6 +513,8 @@ public class PostController(
IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString() IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString()
}); });
post.Publisher = publisher;
return post; return post;
} }
@@ -881,7 +883,7 @@ public class PostController(
UserAgent = Request.Headers.UserAgent, UserAgent = Request.Headers.UserAgent,
IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString() IpAddress = Request.HttpContext.Connection.RemoteIpAddress?.ToString()
}); });
return Ok(post); return Ok(post);
} }