"statusnet_profile_url" => user.ap_id,
"cover_photo" => User.banner_url(user) |> MediaProxy.url(),
"background_image" => image_url(user.info["background"]) |> MediaProxy.url(),
+ "is_local" => user.local
}
if assigns[:token] do
"rights" => %{},
"statusnet_profile_url" => user.ap_id,
"cover_photo" => banner,
- "background_image" => nil
+ "background_image" => nil,
+ "is_local" => true
}
assert represented == UserView.render("show.json", %{user: user})
"rights" => %{},
"statusnet_profile_url" => user.ap_id,
"cover_photo" => banner,
- "background_image" => nil
+ "background_image" => nil,
+ "is_local" => true
}
assert represented == UserView.render("show.json", %{user: user, for: follower})
"rights" => %{},
"statusnet_profile_url" => follower.ap_id,
"cover_photo" => banner,
- "background_image" => nil
+ "background_image" => nil,
+ "is_local" => true
}
assert represented == UserView.render("show.json", %{user: follower, for: user})
"rights" => %{},
"statusnet_profile_url" => user.ap_id,
"cover_photo" => banner,
- "background_image" => nil
+ "background_image" => nil,
+ "is_local" => true
}
blocker = Repo.get(User, blocker.id)