Skip to content

Fix for feed page pagination

Alexander Strizhakov requested to merge fix-feed-pagination into develop

Fix for:

[error] #PID<0.1912.0> running Pleroma.Web.Endpoint (connection #PID<0.1911.0>, stream id 1) terminated
Server: localhost:4000 (http)
Request: GET /users/alex/feed.atom?max_id=9rIYgUZGBtjdJbDf6W
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in Kernel.put_in/3
        (elixir 1.10.2) lib/kernel.ex:2328: Kernel.put_in(%{"actor_id" => "http://localhost:4000/users/alex", "type" => ["Create"]}, "max_id", "9rIYgUZGBtjdJbDf6W")
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/feed/user_controller.ex:44: Pleroma.Web.Feed.UserController.feed/2
(pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/feed/user_controller.ex:5: Pleroma.Web.Feed.UserController.action/2
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/feed/user_controller.ex:5: Pleroma.Web.Feed.UserController.phoenix_controller_pipeline/2
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
        (phoenix 1.4.13) lib/phoenix/router.ex:288: Phoenix.Router.__call__/2
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.plug_builder_call/2
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/plug/debugger.ex:130: Pleroma.Web.Endpoint."call (overridable 3)"/2
        (pleroma 2.0.50-1991-g802b9918-develop+dev) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.call/2
        (phoenix 1.4.13) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy 2.7.0) /Users/alex/Projects/elixir/pleroma/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
        (cowboy 2.7.0) /Users/alex/Projects/elixir/pleroma/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
        (cowboy 2.7.0) /Users/alex/Projects/elixir/pleroma/deps/cowboy/src/cowboy_stream_h.erl:302: :cowboy_stream_h.request_process/3
        (stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

also fixed tag content-type for rss and added support for rss in users feed

Closes #1605 (closed)

Edited by Alexander Strizhakov

Merge request reports

Loading