How to do comments in Activity Stream? (like Facebook)
Posted
by fesja
on Stack Overflow
See other posts from Stack Overflow
or by fesja
Published on 2010-05-03T10:00:13Z
Indexed on
2010/05/03
17:58 UTC
Read the original article
Hit count: 155
Hi,
I'm starting to develop an activity stream. I've read both How to implement the activity stream in a social network and What’s the best manner of implementing a social activity stream?. What I haven't found is the best way to add comments to the activities. As in facebook, each comment can be commented by another person.
If each activity comment is saved as another activity, then I would not be able to get the activity of that comment without doing a query. So the solution I'm thinking is to save the comments inside the serialize data field of each activity. If the user wants to delete his comment, I would have to update that activity.
Is this the correct solution? Is there a better approach?
Thanks!
© Stack Overflow or respective owner