🐛 Fix post controller does not contains publisher in success created response
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user