Exclude reblogs from `GET /api/pleroma/admin/statuses` by default
[akkoma] / test / web / metadata / feed_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.Metadata.Providers.FeedTest do
6 use Pleroma.DataCase
7 import Pleroma.Factory
8 alias Pleroma.Web.Metadata.Providers.Feed
9
10 test "it renders a link to user's atom feed" do
11 user = insert(:user, nickname: "lain")
12
13 assert Feed.build_tags(%{user: user}) == [
14 {:link,
15 [rel: "alternate", type: "application/atom+xml", href: "/users/lain/feed.atom"], []}
16 ]
17 end
18 end