update nodeinfo version when requesting 2.1
authorLuna <git@l4.pm>
Fri, 1 Feb 2019 19:03:23 +0000 (16:03 -0300)
committerLuna <git@l4.pm>
Fri, 1 Feb 2019 19:03:23 +0000 (16:03 -0300)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index a1a395c8f23ba066c9c850dc7e883b3d1fb50771..21694a5ee4983b0dc383c19705d8302c1f676d45 100644 (file)
@@ -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(