Commit 810c2b0
authored
fix: Add author field to ContentSerializer for Forums V2 API compatibility (#245)
The Forums V2 API responses were missing the 'author' attribute that is expected by
the frontend, causing issues when displaying comment/thread author information.
Analysis showed that:
- The ContentSerializer already has 'username' field mapped to 'author_username'
- Frontend expects an 'author' field in addition to 'username'
- Both should reference the same source data (author_username)
This change adds the 'author' field to the DRF serializer, mapped to the same
'author_username' source as 'username', maintaining backward compatibility while
fixing the missing field issue.
Fixes compatibility issues with Forums V2 API responses.1 parent fb17be3 commit 810c2b0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
0 commit comments