Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
602B

  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.Metadata.Providers.Feed do
  5. alias Pleroma.Web.Endpoint
  6. alias Pleroma.Web.Metadata.Providers.Provider
  7. alias Pleroma.Web.Router.Helpers
  8. @behaviour Provider
  9. @impl Provider
  10. def build_tags(%{user: user}) do
  11. [
  12. {:link,
  13. [
  14. rel: "alternate",
  15. type: "application/atom+xml",
  16. href: Helpers.user_feed_path(Endpoint, :feed, user.nickname) <> ".atom"
  17. ], []}
  18. ]
  19. end
  20. end