Merge remote-tracking branch 'origin/develop' into activity-pub-use-atoms-as-keys

This commit is contained in:
Egor Kislitsyn 2020-06-05 23:15:10 +04:00
commit b02df1803e
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
20 changed files with 173 additions and 213 deletions

View file

@ -11,8 +11,6 @@ defmodule Pleroma.Web.Feed.UserController do
alias Pleroma.Web.ActivityPub.ActivityPubController
alias Pleroma.Web.Feed.FeedView
import Pleroma.Web.ControllerHelper, only: [put_if_exist: 3]
plug(Pleroma.Plugs.SetFormatPlug when action in [:feed_redirect])
action_fallback(:errors)
@ -55,7 +53,7 @@ defmodule Pleroma.Web.Feed.UserController do
type: ["Create"],
actor_id: user.ap_id
}
|> put_if_exist(:max_id, params["max_id"])
|> Pleroma.Maps.put_if_present(:max_id, params["max_id"])
|> ActivityPub.fetch_public_or_unlisted_activities()
conn