"background_image" => image_url(user.info["background"]) |> MediaProxy.url(),
"is_local" => user.local,
"locked" => !!user.info["locked"],
- "default_scope" => user.info["default_scope"] || "public"
+ "default_scope" => user.info["default_scope"] || "public",
+ "no_rich_text" => user.info["no_rich_text"] || false
}
if assigns[:token] do
"background_image" => nil,
"is_local" => true,
"locked" => false,
- "default_scope" => "public"
+ "default_scope" => "public",
+ "no_rich_text" => false
}
assert represented == UserView.render("show.json", %{user: user})
"background_image" => nil,
"is_local" => true,
"locked" => false,
- "default_scope" => "public"
+ "default_scope" => "public",
+ "no_rich_text" => false
}
assert represented == UserView.render("show.json", %{user: user, for: follower})
"background_image" => nil,
"is_local" => true,
"locked" => false,
- "default_scope" => "public"
+ "default_scope" => "public",
+ "no_rich_text" => false
}
assert represented == UserView.render("show.json", %{user: follower, for: user})
"background_image" => nil,
"is_local" => true,
"locked" => false,
- "default_scope" => "public"
+ "default_scope" => "public",
+ "no_rich_text" => false
}
blocker = Repo.get(User, blocker.id)