This PR updates the Post view to include user profile information in the response, as requested by the frontend team.
The endpoint can be reached at user-profile/<str:username>/
On the fly calculated fields for the Post model, such as like_count, etc., was returned only in the search results only. Now, they are returned in other posts/ endpoints as well.
The changes ensure that the combined User and Profile fields are returned along with the Post fields in a single endpoint.
The endpoint can be reached at
user-profile/<str:username>/
On the fly calculated fields for the Post model, such as like_count, etc., was returned only in the search results only. Now, they are returned in other
posts/
endpoints as well.The changes ensure that the combined User and Profile fields are returned along with the Post fields in a single endpoint.