2019-10-07 12:20:41 +00:00
|
|
|
# Pleroma: A lightweight social networking server
|
2023-01-02 20:38:50 +00:00
|
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
2019-10-07 12:20:41 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
2019-12-06 09:32:29 +03:00
|
|
|
defmodule Pleroma.Web.Feed.UserControllerTest do
|
2019-10-07 12:20:41 +00:00
|
|
|
use Pleroma.Web.ConnCase
|
|
|
|
|
|
|
|
|
|
import Pleroma.Factory
|
2019-11-08 09:23:24 +03:00
|
|
|
import SweetXml
|
2019-10-07 12:20:41 +00:00
|
|
|
|
|
|
|
|
alias Pleroma.Object
|
|
|
|
|
alias Pleroma.User
|
2020-05-25 23:27:47 +03:00
|
|
|
alias Pleroma.Web.CommonAPI
|
2020-11-10 10:44:22 +03:00
|
|
|
alias Pleroma.Web.Feed.FeedView
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2020-10-02 22:18:02 +03:00
|
|
|
setup do: clear_config([:static_fe, :enabled], false)
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2020-02-22 19:48:41 +03:00
|
|
|
describe "feed" do
|
2020-03-20 18:33:00 +03:00
|
|
|
setup do: clear_config([:feed])
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2020-11-10 10:44:22 +03:00
|
|
|
setup do
|
2021-01-26 11:58:43 -06:00
|
|
|
clear_config(
|
2020-02-22 19:48:41 +03:00
|
|
|
[:feed, :post_title],
|
2020-11-10 10:44:22 +03:00
|
|
|
%{max_length: 15, omission: "..."}
|
2019-11-08 09:23:24 +03:00
|
|
|
)
|
|
|
|
|
|
2020-02-22 19:48:41 +03:00
|
|
|
activity = insert(:note_activity)
|
|
|
|
|
|
|
|
|
|
note =
|
|
|
|
|
insert(:note,
|
|
|
|
|
data: %{
|
2020-11-10 10:44:22 +03:00
|
|
|
"content" => "This & this is :moominmamma: note ",
|
|
|
|
|
"source" => "This & this is :moominmamma: note ",
|
2020-02-22 19:48:41 +03:00
|
|
|
"attachment" => [
|
|
|
|
|
%{
|
|
|
|
|
"url" => [
|
|
|
|
|
%{"mediaType" => "image/png", "href" => "https://pleroma.gov/image.png"}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
2020-11-10 10:44:22 +03:00
|
|
|
"inReplyTo" => activity.data["id"],
|
|
|
|
|
"context" => "2hu & as",
|
|
|
|
|
"summary" => "2hu & as"
|
2020-02-22 19:48:41 +03:00
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
note_activity = insert(:note_activity, note: note)
|
|
|
|
|
user = User.get_cached_by_ap_id(note_activity.data["actor"])
|
2019-11-08 09:23:24 +03:00
|
|
|
|
2020-02-22 19:48:41 +03:00
|
|
|
note2 =
|
|
|
|
|
insert(:note,
|
|
|
|
|
user: user,
|
|
|
|
|
data: %{
|
2020-11-10 10:44:22 +03:00
|
|
|
"content" => "42 & This is :moominmamma: note ",
|
2020-02-22 19:48:41 +03:00
|
|
|
"inReplyTo" => activity.data["id"]
|
|
|
|
|
}
|
|
|
|
|
)
|
2019-11-08 09:23:24 +03:00
|
|
|
|
2020-03-10 18:11:48 +03:00
|
|
|
note_activity2 = insert(:note_activity, note: note2)
|
2023-03-06 02:31:31 +05:00
|
|
|
|
|
|
|
|
note3 =
|
|
|
|
|
insert(:note,
|
|
|
|
|
user: user,
|
|
|
|
|
data: %{
|
|
|
|
|
"content" => "This note tests whether HTML entities are truncated properly",
|
|
|
|
|
"summary" => "Won't, didn't fail",
|
|
|
|
|
"inReplyTo" => note_activity2.id
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
_note_activity3 = insert(:note_activity, note: note3)
|
2021-01-04 13:38:31 +01:00
|
|
|
object = Object.normalize(note_activity, fetch: false)
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2023-03-06 02:31:31 +05:00
|
|
|
encoded_title = FeedView.activity_title(note3.data)
|
|
|
|
|
|
|
|
|
|
[user: user, object: object, max_id: note_activity2.id, encoded_title: encoded_title]
|
2020-11-10 10:44:22 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "gets an atom feed", %{conn: conn, user: user, object: object, max_id: max_id} do
|
2020-02-22 19:48:41 +03:00
|
|
|
resp =
|
|
|
|
|
conn
|
2020-03-13 17:41:26 +03:00
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
2020-02-22 19:48:41 +03:00
|
|
|
|> get(user_feed_path(conn, :feed, user.nickname))
|
|
|
|
|
|> response(200)
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2026-07-24 20:38:25 +04:00
|
|
|
xml = SweetXml.parse(resp)
|
|
|
|
|
activity_titles = SweetXml.xpath(xml, ~x"//entry/title/text()"l)
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"Won't, didn'...", ~c"2hu", ~c"2hu & as"]
|
2026-07-24 20:38:25 +04:00
|
|
|
assert SweetXml.xpath(xml, ~x"//entry/link[@rel='self']/@href"sl) == []
|
|
|
|
|
assert length(SweetXml.xpath(xml, ~x"//entry/link[@rel='alternate']/@href"sl)) == 3
|
2020-11-10 10:44:22 +03:00
|
|
|
assert resp =~ FeedView.escape(object.data["content"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["summary"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["context"])
|
2020-03-10 18:11:48 +03:00
|
|
|
|
|
|
|
|
resp =
|
|
|
|
|
conn
|
2020-03-13 17:41:26 +03:00
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
2020-11-10 10:44:22 +03:00
|
|
|
|> get("/users/#{user.nickname}/feed", %{"max_id" => max_id})
|
2020-03-10 18:11:48 +03:00
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
activity_titles =
|
|
|
|
|
resp
|
|
|
|
|
|> SweetXml.parse()
|
|
|
|
|
|> SweetXml.xpath(~x"//entry/title/text()"l)
|
|
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"2hu & as"]
|
2020-02-22 19:48:41 +03:00
|
|
|
end
|
|
|
|
|
|
2020-11-10 10:44:22 +03:00
|
|
|
test "gets a rss feed", %{conn: conn, user: user, object: object, max_id: max_id} do
|
2020-03-13 17:41:26 +03:00
|
|
|
resp =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/rss+xml")
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.rss")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
activity_titles =
|
|
|
|
|
resp
|
|
|
|
|
|> SweetXml.parse()
|
|
|
|
|
|> SweetXml.xpath(~x"//item/title/text()"l)
|
|
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"Won't, didn'...", ~c"2hu", ~c"2hu & as"]
|
2020-11-10 10:44:22 +03:00
|
|
|
assert resp =~ FeedView.escape(object.data["content"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["summary"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["context"])
|
2020-03-13 17:41:26 +03:00
|
|
|
|
|
|
|
|
resp =
|
|
|
|
|
conn
|
2020-03-13 17:58:14 +03:00
|
|
|
|> put_req_header("accept", "application/rss+xml")
|
2020-11-10 10:44:22 +03:00
|
|
|
|> get("/users/#{user.nickname}/feed.rss", %{"max_id" => max_id})
|
2020-03-13 17:41:26 +03:00
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
activity_titles =
|
|
|
|
|
resp
|
|
|
|
|
|> SweetXml.parse()
|
|
|
|
|
|> SweetXml.xpath(~x"//item/title/text()"l)
|
|
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"2hu & as"]
|
2020-02-22 19:48:41 +03:00
|
|
|
end
|
|
|
|
|
|
2026-07-24 20:11:19 +04:00
|
|
|
test "escapes query parameters in feed self links", %{conn: conn, user: user} do
|
|
|
|
|
for format <- ~w[atom rss] do
|
|
|
|
|
response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.#{format}?first=one&second=two")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
assert response =~ "first=one&second=two"
|
|
|
|
|
refute response =~ "first=one&second=two"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2026-07-24 20:34:33 +04:00
|
|
|
test "does not expose sensitive attachments as enclosures", %{
|
|
|
|
|
conn: conn,
|
|
|
|
|
object: object,
|
|
|
|
|
user: user
|
|
|
|
|
} do
|
|
|
|
|
object
|
|
|
|
|
|> Ecto.Changeset.change(data: Map.put(object.data, "sensitive", true))
|
|
|
|
|
|> Pleroma.Repo.update!()
|
|
|
|
|
|
|
|
|
|
atom_response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.atom")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
rss_response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.rss")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
refute atom_response =~ "rel=\"enclosure\""
|
|
|
|
|
refute rss_response =~ "<enclosure "
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "uses enclosure fallbacks for user feeds", %{conn: conn, object: object, user: user} do
|
|
|
|
|
attachment = %{"url" => [%{"href" => "https://example.com/file.bin"}]}
|
|
|
|
|
|
|
|
|
|
object
|
|
|
|
|
|> Ecto.Changeset.change(data: Map.put(object.data, "attachment", [attachment]))
|
|
|
|
|
|> Pleroma.Repo.update!()
|
|
|
|
|
|
|
|
|
|
atom_xml =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.atom")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|> parse()
|
|
|
|
|
|
|
|
|
|
assert xpath(atom_xml, ~x"//entry/link[@rel='enclosure']/@href"sl) == [
|
|
|
|
|
"https://example.com/file.bin"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
assert xpath(atom_xml, ~x"//entry/link[@rel='enclosure']/@type"sl) == [
|
|
|
|
|
"application/octet-stream"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
assert xpath(atom_xml, ~x"//entry/link[@rel='enclosure']/@length"sl) == []
|
|
|
|
|
|
|
|
|
|
rss_xml =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.rss")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|> parse()
|
|
|
|
|
|
2026-07-24 20:59:13 +04:00
|
|
|
assert xpath(rss_xml, ~x"//item/enclosure/@url"sl) == []
|
|
|
|
|
assert xpath(rss_xml, ~x"//item/media:content/@url"sl) == ["https://example.com/file.bin"]
|
|
|
|
|
|
|
|
|
|
assert xpath(rss_xml, ~x"//item/media:content/@type"sl) == [
|
|
|
|
|
"application/octet-stream"
|
|
|
|
|
]
|
2026-07-24 20:34:33 +04:00
|
|
|
end
|
|
|
|
|
|
2020-02-22 19:48:41 +03:00
|
|
|
test "returns 404 for a missing feed", %{conn: conn} do
|
|
|
|
|
conn =
|
|
|
|
|
conn
|
2020-03-13 17:41:26 +03:00
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
2020-02-22 19:48:41 +03:00
|
|
|
|> get(user_feed_path(conn, :feed, "nonexisting"))
|
|
|
|
|
|
|
|
|
|
assert response(conn, 404)
|
|
|
|
|
end
|
2020-05-25 23:27:47 +03:00
|
|
|
|
2024-10-02 18:39:14 -04:00
|
|
|
test "returns noindex meta for missing user", %{conn: conn} do
|
|
|
|
|
conn =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "text/html")
|
|
|
|
|
|> get("/users/nonexisting")
|
|
|
|
|
|
|
|
|
|
assert html_response(conn, 200) =~ "<meta content=\"noindex, noarchive\" name=\"robots\">"
|
|
|
|
|
end
|
|
|
|
|
|
2020-05-25 23:27:47 +03:00
|
|
|
test "returns feed with public and unlisted activities", %{conn: conn} do
|
|
|
|
|
user = insert(:user)
|
|
|
|
|
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "public", visibility: "public"})
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "direct", visibility: "direct"})
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "unlisted", visibility: "unlisted"})
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "private", visibility: "private"})
|
|
|
|
|
|
|
|
|
|
resp =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
|
|
|
|
|> get(user_feed_path(conn, :feed, user.nickname))
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
activity_titles =
|
|
|
|
|
resp
|
|
|
|
|
|> SweetXml.parse()
|
|
|
|
|
|> SweetXml.xpath(~x"//entry/title/text()"l)
|
|
|
|
|
|> Enum.sort()
|
|
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"public", ~c"unlisted"]
|
2020-05-25 23:27:47 +03:00
|
|
|
end
|
2020-07-29 14:02:02 +02:00
|
|
|
|
|
|
|
|
test "returns 404 when the user is remote", %{conn: conn} do
|
|
|
|
|
user = insert(:user, local: false)
|
|
|
|
|
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "test"})
|
|
|
|
|
|
|
|
|
|
assert conn
|
|
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
|
|
|
|
|> get(user_feed_path(conn, :feed, user.nickname))
|
|
|
|
|
|> response(404)
|
|
|
|
|
end
|
2020-10-02 22:18:02 +03:00
|
|
|
|
|
|
|
|
test "does not require authentication on non-federating instances", %{conn: conn} do
|
|
|
|
|
clear_config([:instance, :federating], false)
|
|
|
|
|
user = insert(:user)
|
|
|
|
|
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/rss+xml")
|
|
|
|
|
|> get("/users/#{user.nickname}/feed.rss")
|
|
|
|
|
|> response(200)
|
|
|
|
|
end
|
2023-03-06 02:31:31 +05:00
|
|
|
|
|
|
|
|
test "does not mangle HTML entities midway", %{
|
|
|
|
|
conn: conn,
|
|
|
|
|
user: user,
|
|
|
|
|
object: object,
|
|
|
|
|
encoded_title: encoded_title
|
|
|
|
|
} do
|
|
|
|
|
resp =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
|
|
|
|
|> get(user_feed_path(conn, :feed, user.nickname))
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
activity_titles =
|
|
|
|
|
resp
|
|
|
|
|
|> SweetXml.parse()
|
|
|
|
|
|> SweetXml.xpath(~x"//entry/title/text()"l)
|
|
|
|
|
|
2024-05-31 07:19:48 +02:00
|
|
|
assert activity_titles == [~c"Won't, didn'...", ~c"2hu", ~c"2hu & as"]
|
2023-03-06 02:31:31 +05:00
|
|
|
assert resp =~ FeedView.escape(object.data["content"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["summary"])
|
|
|
|
|
assert resp =~ FeedView.escape(object.data["context"])
|
|
|
|
|
assert resp =~ encoded_title
|
|
|
|
|
end
|
2019-10-07 12:20:41 +00:00
|
|
|
end
|
|
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
# Note: see ActivityPubControllerTest for JSON format tests
|
2019-10-07 12:20:41 +00:00
|
|
|
describe "feed_redirect" do
|
2020-03-09 20:51:44 +03:00
|
|
|
test "with html format, it redirects to user feed", %{conn: conn} do
|
2019-10-07 12:20:41 +00:00
|
|
|
note_activity = insert(:note_activity)
|
|
|
|
|
user = User.get_cached_by_ap_id(note_activity.data["actor"])
|
|
|
|
|
|
|
|
|
|
response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
assert response ==
|
2020-06-23 21:10:32 +03:00
|
|
|
Pleroma.Web.Fallback.RedirectController.redirector_with_meta(
|
2019-10-07 12:20:41 +00:00
|
|
|
conn,
|
|
|
|
|
%{user: user}
|
|
|
|
|
).resp_body
|
|
|
|
|
end
|
|
|
|
|
|
2021-08-17 18:32:32 -05:00
|
|
|
test "with html format, it falls back to frontend when user is remote", %{conn: conn} do
|
|
|
|
|
user = insert(:user, local: false)
|
|
|
|
|
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "test"})
|
|
|
|
|
|
|
|
|
|
response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/#{user.nickname}")
|
|
|
|
|
|> response(200)
|
|
|
|
|
|
|
|
|
|
assert response =~ "</html>"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "with html format, it falls back to frontend when user is not found", %{conn: conn} do
|
2019-10-07 12:20:41 +00:00
|
|
|
response =
|
|
|
|
|
conn
|
|
|
|
|
|> get("/users/jimm")
|
2021-08-17 18:32:32 -05:00
|
|
|
|> response(200)
|
2019-10-07 12:20:41 +00:00
|
|
|
|
2021-08-17 18:32:32 -05:00
|
|
|
assert response =~ "</html>"
|
2019-10-07 12:20:41 +00:00
|
|
|
end
|
2020-02-22 19:48:41 +03:00
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
test "with non-html / non-json format, it redirects to user feed in atom format", %{
|
|
|
|
|
conn: conn
|
|
|
|
|
} do
|
|
|
|
|
note_activity = insert(:note_activity)
|
|
|
|
|
user = User.get_cached_by_ap_id(note_activity.data["actor"])
|
2020-02-22 19:48:41 +03:00
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
conn =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/xml")
|
|
|
|
|
|> get("/users/#{user.nickname}")
|
2020-02-22 19:48:41 +03:00
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
assert conn.status == 302
|
2021-05-31 15:09:11 -05:00
|
|
|
|
|
|
|
|
assert redirected_to(conn) ==
|
|
|
|
|
"#{Pleroma.Web.Endpoint.url()}/users/#{user.nickname}/feed.atom"
|
2020-02-22 19:48:41 +03:00
|
|
|
end
|
|
|
|
|
|
2025-10-14 20:29:06 +02:00
|
|
|
test "redirects to rss feed when explicitly requested", %{conn: conn} do
|
|
|
|
|
note_activity = insert(:note_activity)
|
|
|
|
|
user = User.get_cached_by_ap_id(note_activity.data["actor"])
|
|
|
|
|
|
|
|
|
|
conn =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/xml")
|
|
|
|
|
|> get("/users/#{user.nickname}.rss")
|
|
|
|
|
|
|
|
|
|
assert conn.status == 302
|
|
|
|
|
|
|
|
|
|
assert redirected_to(conn) ==
|
|
|
|
|
"#{Pleroma.Web.Endpoint.url()}/users/#{user.nickname}/feed.rss"
|
|
|
|
|
end
|
|
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
test "with non-html / non-json format, it returns error when user is not found", %{conn: conn} do
|
|
|
|
|
response =
|
|
|
|
|
conn
|
|
|
|
|
|> put_req_header("accept", "application/xml")
|
|
|
|
|
|> get(user_feed_path(conn, :feed, "jimm"))
|
|
|
|
|
|> response(404)
|
2020-02-22 19:48:41 +03:00
|
|
|
|
2020-03-09 20:51:44 +03:00
|
|
|
assert response == ~S({"error":"Not found"})
|
2020-02-22 19:48:41 +03:00
|
|
|
end
|
|
|
|
|
end
|
2020-08-31 15:58:21 -05:00
|
|
|
|
|
|
|
|
describe "private instance" do
|
|
|
|
|
setup do: clear_config([:instance, :public])
|
|
|
|
|
|
|
|
|
|
test "returns 404 for user feed", %{conn: conn} do
|
2021-01-26 11:58:43 -06:00
|
|
|
clear_config([:instance, :public], false)
|
2020-08-31 15:58:21 -05:00
|
|
|
user = insert(:user)
|
|
|
|
|
|
|
|
|
|
{:ok, _} = CommonAPI.post(user, %{status: "test"})
|
|
|
|
|
|
|
|
|
|
assert conn
|
|
|
|
|
|> put_req_header("accept", "application/atom+xml")
|
|
|
|
|
|> get(user_feed_path(conn, :feed, user.nickname))
|
|
|
|
|
|> response(404)
|
|
|
|
|
end
|
|
|
|
|
end
|
2019-10-07 12:20:41 +00:00
|
|
|
end
|