Monday, February 17, 2025
1 change
Code cleanup and technical improvements
Social post actions such as loading comments and liking posts or comments now call the post record directly instead of going through separate web endpoints. This simplifies the internal flow, reduces duplicated routing code, and should make the social integrations easier to maintain without changing the user experience.
Original PR description
Before this commit: - we used to follow an approach where to get the comments made on a post, like that comment, like a post, etc, we were making an `rpc` call to the controller bound on a specific route. - say `/social_facebook/like_comment` to like a comment present inside a post. - the controller method then used to fetch the related `social.stream.post` record, and call the actual method. ex --> `stream_post._facebook_like(comment_id, like)` After this commit: - we now directly call the method bound on the related `social.stream.post` record bypassing the controller calls. Task-**4184961**