• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Partial fix User Following

psx

Active member
#1
Screenshot 2015-06-05 at 4.05.40 PM.png

One of our users are only following one person but its showing "Following 2"?
It could've been a banned user or a deleted user?
 

Mike

XenForo developer
Staff member
#3
This is likely a banned or deleted user, as suggested. The count is difficult to update with this due to this data being stored denormalized and potentially changing unexpectedly. There's code that attempts to handle this, but I think it's wrong. I think we need to just use the fetched count as is in this case, though there are cases that we can't resolve this.
 

Mike

XenForo developer
Staff member
#4
I've adjusted this now to at least deal with the count being incorrect in certain obvious ways (listed as 2, only 1 available). Because of temporary bans and things like that, it may not be possible to have a totally accurate count (that's efficient) in cases with larger following counts.