From: Luna Date: Fri, 1 Feb 2019 19:03:23 +0000 (-0300) Subject: update nodeinfo version when requesting 2.1 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9cac8729afa7219d8b87e2851b855cab7a1c04b3;p=akkoma update nodeinfo version when requesting 2.1 --- diff --git a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex index a1a395c8f..21694a5ee 100644 --- a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex +++ b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex @@ -168,7 +168,10 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do |> Map.get(:software) |> Map.put(:repository, Pleroma.Application.repository()) - response = raw_response |> Map.put(:software, updated_software) + response = + raw_response + |> Map.put(:software, updated_software) + |> Map.put(:version, "2.1") conn |> put_resp_header(