ZHIWEI666 commited on
Commit
d1e6e89
·
verified ·
1 Parent(s): f33a009

Upload 3 files

Browse files
Files changed (1) hide show
  1. user_store.py +3 -0
user_store.py CHANGED
@@ -25,6 +25,9 @@ def project_profile(record, owner=False):
25
  result[field] = normalize_profile_media(result[field]) or ''
26
  except (ValueError, TypeError):
27
  result[field] = ''
 
 
 
28
  return result
29
 
30
 
 
25
  result[field] = normalize_profile_media(result[field]) or ''
26
  except (ValueError, TypeError):
27
  result[field] = ''
28
+ result["following_count"] = len(_accounts(record, "following"))
29
+ if not owner and isinstance(result.get("privacy"), dict) and result["privacy"].get("follows") is True:
30
+ result["following"] = []
31
  return result
32
 
33