Implement announcement read relationships

This commit is contained in:
Tusooa Zhu 2022-03-08 12:07:21 -05:00
commit 5169ad8f14
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
8 changed files with 316 additions and 3 deletions

View file

@ -580,6 +580,8 @@ defmodule Pleroma.Web.Router do
get("/timelines/home", TimelineController, :home)
get("/timelines/direct", TimelineController, :direct)
get("/timelines/list/:list_id", TimelineController, :list)
post("/announcements/:id/dismiss", AnnouncementController, :mark_read)
end
scope "/api/v1", Pleroma.Web.MastodonAPI do
@ -624,6 +626,9 @@ defmodule Pleroma.Web.Router do
get("/polls/:id", PollController, :show)
get("/directory", DirectoryController, :index)
get("/announcements", AnnouncementController, :index)
get("/announcements/:id", AnnouncementController, :show)
end
scope "/api/v2", Pleroma.Web.MastodonAPI do