Skip to:

Opened 13 years ago

Closed 13 years ago

#3676 closed defect (bug) (fixed)

Friend count doesn't iterate when $force_accept is true in friends_add_friend()

Reported by: r-a-y's profile r-a-y Owned by:
Milestone: 1.6 Priority: normal
Severity: normal Version: 1.2
Component: Friends Keywords: dev-feedback


When you set the $force_accept parameter to true in friends_add_friend(), the friends count is never iterated because there is no call to friends_update_friend_totals().

Change History (3)

#1 @r-a-y
13 years ago

To be more accurate, the friend count returned by the user meta key "total_friend_count" is never updated.

This affects friends_get_total_friend_count(), which, in turn, is used in bp_get_displayed_user_nav().

#2 @DJPaul
13 years ago

  • Milestone changed from Awaiting Review to 1.6

#3 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5389]) Ensures that friends_update_friend_totals() is called manually when friends_add_friend() is used with force_accept = true. Fixes #3676

Note: See TracTickets for help on using tickets.