projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integrate search endpoint with ES
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
filter_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/filter_view.ex
b/lib/pleroma/web/mastodon_api/views/filter_view.ex
index 8d5c381ec7a5ba04826abc92287c952713d0e182..8e8798c1e312035dc57ad22b29537e4004714b70 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/filter_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/filter_view.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.FilterView do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.FilterView do
@@
-7,8
+7,8
@@
defmodule Pleroma.Web.MastodonAPI.FilterView do
alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.FilterView
alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.FilterView
- def render("index.json", %{filters: filters}
= opts
) do
- render_many(filters, FilterView, "show.json"
, opts
)
+ def render("index.json", %{filters: filters}) do
+ render_many(filters, FilterView, "show.json")
end
def render("show.json", %{filter: filter}) do
end
def render("show.json", %{filter: filter}) do
@@
-25,7
+25,7
@@
defmodule Pleroma.Web.MastodonAPI.FilterView do
context: filter.context,
expires_at: expires_at,
irreversible: filter.hide,
context: filter.context,
expires_at: expires_at,
irreversible: filter.hide,
- whole_word: f
alse
+ whole_word: f
ilter.whole_word
}
end
end
}
end
end