[buddypress-trac] [BuddyPress Trac] #3794: Deleted activity items remain favourited

buddypress-trac noreply at wordpress.org
Sun Sep 28 13:35:43 UTC 2014

#3794: Deleted activity items remain favourited
 Reporter:  ewebber       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.2
Component:  Activity      |     Version:  1.5.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |

Comment (by DJPaul):

 Replying to [comment:14 imath]:
 > Replying to [comment:13 DJPaul]:
 > > Why do we want to change that away from storing the total count in
 user meta? User meta seems the appropriate place for this (just like how
 we already store an activity's total favourite count in its
 `favorite_count` activity meta).
 > I have no objection to store a count in user meta, it's just the count
 is already there by requesting activities having the type
 'activity_favorite' for the user id.

 For simple use cases like displaying a number of how many times an
 activity has been favourited, a meta item will be much quicker (I'm 99%
 sure this is why bbPress has functions like `bbp_get_topic_reply_count`
 which use post meta).

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3794#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list