[buddypress-trac] [BuddyPress] #4327: My Favorites Count Bug
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Jul 6 04:59:41 UTC 2012
#4327: My Favorites Count Bug
--------------------------+------------------------------
Reporter: gagan0123 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version: 1.5.6
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by gagan0123):
I think this problem can be fixed by having a meta data in the activity
containing the ids of the users who marked it as favorite(just like user
meta is having all the ids of the activities they've marked favorite, sort
of like reverse mapping).
Then on deletion we can remove the favorites from all the users for that
activity in just two queries(one for removing the activity id from all
users and one for decrementing the count).
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4327#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list