When making a GET request for a posting object or a list of postings, we need to add a field that shows the most liked comment for each posting. We can do this by making this field a serializer method field.
Sub-tasks:
Add a serializer method field to the GenericPostSerializer that finds the most liked comment associated with the posting.
If there is more than 1 comment that has the most likes, then return the newest one.
Add this field to the ignored fields in the generic test
When making a GET request for a posting object or a list of postings, we need to add a field that shows the most liked comment for each posting. We can do this by making this field a serializer method field.
Sub-tasks: