add copyright notice for forked files
[akkoma] / lib / pleroma / elasticsearch / document_mappings / user.ex
index 5d9945c23b07ff59cb73636be5810751559d6576..d5cfca65646c70a8b34196debf41bf2afe0a4c5c 100644 (file)
@@ -1,3 +1,7 @@
+# Akkoma: A lightweight social networking server
+# Copyright © 2022-2022 Akkoma Authors <https://git.ihatebeinga.live/IHBAGang/akkoma/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Elasticsearch.DocumentMappings.User do
   def id(obj), do: obj.id
 
@@ -6,7 +10,8 @@ defmodule Pleroma.Elasticsearch.DocumentMappings.User do
       timestamp: user.inserted_at,
       instance: URI.parse(user.ap_id).host,
       nickname: user.nickname,
-      bio: user.bio
+      bio: user.bio,
+      display_name: user.name
     }
   end
 end