You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably doable by first adding the existing Commentable mixin as a superclass for a BaseComment, and then creating CommentComment subclass for BaseComment? Then, a comment could be POSTed to a comment just as well as to a section.
However, then we would require recursively counting all the subcomments of a comment when counting the comments belonging to a section; as the comments would not be directly linked to the section itself, but we want to keep the section total comment number up to date.
If you feel that the current Commentable mixin is not useful here, feel free to suggest a refactor, as the mixin is currently used only for Section but no other classes.
Also, serialize all comments related to a comment inside the specific comment JSON in the API.
The text was updated successfully, but these errors were encountered: