Refactor seguidores y seguidos

This commit is contained in:
Jesús Pavón Abián
2026-02-02 18:54:18 +01:00
parent 5abe9e7d74
commit 5f9cf2c25b
3 changed files with 31 additions and 20 deletions
+4 -4
View File
@@ -297,10 +297,10 @@ def compose_user(user, db, settings, relative_times, show_screen_names=False, sa
profile = resolve_profile(user)
handle = g(profile, "handle", "unknown")
display_name = g(profile, "displayName") or g(profile, "display_name") or handle
followers = g(profile, "followersCount", 0) or 0
following = g(profile, "followsCount", 0) or 0
posts = g(profile, "postsCount", 0) or 0
created_at = g(profile, "createdAt", None)
followers = g(profile, "followersCount") or g(profile, "followers_count") or 0
following = g(profile, "followsCount") or g(profile, "follows_count") or 0
posts = g(profile, "postsCount") or g(profile, "posts_count") or 0
created_at = g(profile, "createdAt") or g(profile, "created_at")
ts = ""
if created_at: