diff options
author | ensra <ensra@users.noreply.github.com> | 2018-08-21 15:25:21 +0100 |
---|---|---|
committer | ensra <ensra@users.noreply.github.com> | 2018-08-21 15:25:21 +0100 |
commit | e883587cc3a0c386e3cc3f63c2d8a2d64f7c953b (patch) | |
tree | d5987639430bf584a8744b677f623e1efad4e36a | |
parent | f533daffdbbf2912677868c68f2ca0e28f8db347 (diff) | |
download | pleroma-e883587cc3a0c386e3cc3f63c2d8a2d64f7c953b.tar.gz |
this should be looking at the follower's bio, not the user's bio.
fixes test.
-rw-r--r-- | test/web/twitter_api/views/user_view_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/twitter_api/views/user_view_test.exs b/test/web/twitter_api/views/user_view_test.exs index 180b7602e..24a5c5bca 100644 --- a/test/web/twitter_api/views/user_view_test.exs +++ b/test/web/twitter_api/views/user_view_test.exs @@ -144,8 +144,8 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do "name" => follower.name, "screen_name" => follower.nickname, "name_html" => follower.name, - "description" => HtmlSanitizeEx.strip_tags(user.bio |> String.replace("<br>", "\n")), - "description_html" => HtmlSanitizeEx.basic_html(user.bio), + "description" => HtmlSanitizeEx.strip_tags(follower.bio |> String.replace("<br>", "\n")), + "description_html" => HtmlSanitizeEx.basic_html(follower.bio), "created_at" => follower.inserted_at |> Utils.format_naive_asctime(), "favourites_count" => 0, "statuses_count" => 0, |