Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #3794, comment 14


Ignore:
Timestamp:
09/28/2014 01:13:03 PM (10 years ago)
Author:
imath
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3794, comment 14

    initial v1  
    55> 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).
    66
    7 Well so far user metas are used to store the activity item ids that has been favorited (not the count). So when an activity item is deleted, its idea is still in the usermeta and the count( usermeta ) is wrong.
     7Well so far user metas are used to store the activity item ids that has been favorited (not the count). So when an activity item is deleted, its ID is still in the usermeta and the count( usermeta ) is wrong.
    88
    99I 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.