mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
Test for case-insensitive mastodon hashtag timelines.
This commit is contained in:
parent
4bcdbb12a4
commit
7dfe611620
1 changed files with 11 additions and 2 deletions
|
@ -944,11 +944,20 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|
||||||
{:ok, [_activity]} =
|
{:ok, [_activity]} =
|
||||||
OStatus.fetch_activity_from_url("https://shitposter.club/notice/2827873")
|
OStatus.fetch_activity_from_url("https://shitposter.club/notice/2827873")
|
||||||
|
|
||||||
conn =
|
nconn =
|
||||||
conn
|
conn
|
||||||
|> get("/api/v1/timelines/tag/2hu")
|
|> get("/api/v1/timelines/tag/2hu")
|
||||||
|
|
||||||
assert [%{"id" => id}] = json_response(conn, 200)
|
assert [%{"id" => id}] = json_response(nconn, 200)
|
||||||
|
|
||||||
|
assert id == to_string(activity.id)
|
||||||
|
|
||||||
|
# works for different capitalization too
|
||||||
|
nconn =
|
||||||
|
conn
|
||||||
|
|> get("/api/v1/timelines/tag/2HU")
|
||||||
|
|
||||||
|
assert [%{"id" => id}] = json_response(nconn, 200)
|
||||||
|
|
||||||
assert id == to_string(activity.id)
|
assert id == to_string(activity.id)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue