ActivityPub user view: include tag if present.
authoreal <eal@waifu.club>
Mon, 13 Aug 2018 13:11:48 +0000 (16:11 +0300)
committereal <eal@waifu.club>
Mon, 13 Aug 2018 13:11:48 +0000 (16:11 +0300)
lib/pleroma/web/activity_pub/views/user_view.ex

index 41bfe5048a886e9e3266620f73abe4e5c1a1af5d..fdb2b8ea9e444a6803274a3eada9ff11b4d9da68 100644 (file)
@@ -42,7 +42,8 @@ defmodule Pleroma.Web.ActivityPub.UserView do
       "image" => %{
         "type" => "Image",
         "url" => User.banner_url(user)
-      }
+      },
+      "tag" => user.info["source_data"]["tag"] || []
     }
     |> Map.merge(Utils.make_json_ld_header())
   end