Skip to content

Commit

Permalink
chore: Name in nodeinfo should stay as Akkoma
Browse files Browse the repository at this point in the history
This isn't a hard-fork afterall...
  • Loading branch information
null2264 committed Sep 28, 2023
1 parent 570ce9b commit 6b4f048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/pleroma/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule Pleroma.Application do
@mix_env Mix.env()

def name, do: @name
def compat_name, do: @compat_name
def version, do: @version
def named_version, do: @compat_name <> " " <> @version <> "+" <> String.downcase(@name)
def repository, do: @repository
Expand Down
4 changes: 2 additions & 2 deletions lib/pleroma/web/nodeinfo/nodeinfo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo do
%{
version: "2.0",
software: %{
name: Pleroma.Application.name() |> String.downcase(),
version: Pleroma.Application.version()
name: Pleroma.Application.compat_name() |> String.downcase(),
version: Pleroma.Application.version() <> "+" <> (Pleroma.Application.name() |> String.downcase()),
},
protocols: Publisher.gather_nodeinfo_protocol_names(),
services: %{
Expand Down

0 comments on commit 6b4f048

Please sign in to comment.