diff options
author | Mark Felder <feld@FreeBSD.org> | 2018-11-02 19:38:57 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2018-11-02 19:38:57 +0000 |
commit | 0cca7edbe065b2b1aa5f81bad72025f73cae5cf8 (patch) | |
tree | d6fddc116c4b6f3117981df8a7fb1554ac0c6f4d /lib | |
parent | f114f843248d207ff240b018a774ce32c34b6eaf (diff) | |
download | pleroma-0cca7edbe065b2b1aa5f81bad72025f73cae5cf8.tar.gz |
Fix hashtag search
When we lowercase the search it will succesfully do a case insenstive
match. Now #Linux will match #linux and #LINUX whereas previously it
would only match the exact case.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index e03027be7..f6cf081fd 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -508,6 +508,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do |> Map.put("type", "Create") |> Map.put("local_only", local_only) |> Map.put("blocking_user", user) + |> Map.put("tag", String.downcase(params["tag"])) activities = ActivityPub.fetch_public_activities(params) |