Spaces:
Running
Running
Upload 3 files
Browse files- 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 |
|