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

buddypress-trac noreply at wordpress.org
Sun Sep 28 13:00:01 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):

 I would like some details on some of the proposed architectural changes.

 In `bp_activity_get_user_favorites`, I see you've decided to use wp_cache
 to cache the total count of a user's favourites. 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).

 If I wanted to find out the user IDs (for example) of everyone who has
 favourited a specific activity item, how would I do that? To clarify, I am
 not necessarily saying we should build new API functions to do this, I am
 just wondering how it would be possible to do this.

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

More information about the buddypress-trac mailing list