I'm not 100% under which circumstances this occurs, but sometimes a duplicate (reverse) entry will be added for a user in flag_friends resulting in a skewed friend count.

CommentFileSizeAuthor
#1 patch_commit_7ceb9abe0508.patch2.71 KBmoonray

Comments

moonray’s picture

Status: Active » Needs review
StatusFileSize
new2.71 KB

Attached patch fixes this problem by adding a check against (reverse) duplicates before inserting a new entry in flag_friends.

mikl’s picture

Status: Needs review » Reviewed & tested by the community

Looks sound to me. I didn't have this problem, so it should probably be checked out by the maintainer before being committed.

sirkitree’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.