Add preferredUsername to service actors so Mastodon can resolve them
authorThibaut Girka <thib.pleroma-6b5f@sitedethib.com>
Sat, 3 Aug 2019 17:24:57 +0000 (17:24 +0000)
committerThibaut Girka <thib.pleroma-6b5f@sitedethib.com>
Sat, 3 Aug 2019 17:24:57 +0000 (17:24 +0000)
lib/pleroma/web/activity_pub/views/user_view.ex

index 639519e0a87692e6f8d3e9116b1c4a04b1791b5c..4a83ac98037bd785f46f6256f7e530d8f2c9da5b 100644 (file)
@@ -45,6 +45,7 @@ defmodule Pleroma.Web.ActivityPub.UserView do
       "following" => "#{user.ap_id}/following",
       "followers" => "#{user.ap_id}/followers",
       "inbox" => "#{user.ap_id}/inbox",
+      "preferredUsername" => user.nickname,
       "name" => "Pleroma",
       "summary" =>
         "An internal service actor for this Pleroma instance.  No user-serviceable parts inside.",