followers_count: user_info.follower_count,
following_count: user_info.following_count,
statuses_count: user_info.note_count,
- note: user.bio,
+ note: user.bio || "",
url: user.ap_id,
avatar: image,
avatar_static: image,
def render("relationship.json", %{user: user, target: target}) do
%{
id: target.id,
- following: User.following?(target, user),
- followed_by: User.following?(user, target),
+ following: User.following?(user, target),
+ followed_by: User.following?(target, user),
blocking: false,
muting: false,
requested: false,