Apply 3 suggestion(s) to 3 file(s)
authorfeld <feld@feld.me>
Wed, 14 Oct 2020 19:33:54 +0000 (19:33 +0000)
committerfeld <feld@feld.me>
Wed, 14 Oct 2020 19:33:54 +0000 (19:33 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/api_spec/schemas/chat.ex
lib/pleroma/web/api_spec/schemas/status.ex

index 236fefbb6afbc0cf0f1f0b9bd78002899504c948..b04b72106a33f5828ddf6fffa513da124efa2983 100644 (file)
@@ -1232,7 +1232,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
     capabilities = data["capabilities"] || %{}
     accepts_chat_messages = capabilities["acceptsChatMessages"]
     data = Transmogrifier.maybe_fix_user_object(data)
-    is_discoverable = data["is_discoverable"] || false
+    is_discoverable = data["discoverable"] || false
     invisible = data["invisible"] || false
     actor_type = data["type"] || "Person"
 
index da245d0de8909d3a97ac44782720bbb87a413350..b4986b734e9b7613504aa299a7b4b4cd0c226a95 100644 (file)
@@ -44,7 +44,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
           "sensitive" => false,
           "note" => "lain",
           "pleroma" => %{
-            "is_discoverable" => false,
+            "discoverable" => false,
             "actor_type" => "Person"
           },
           "fields" => []
index 52b870d63f1c8f50e1de6f890f78f8931bf4fe07..947e42890744d80117615417361bd881f1e9c709 100644 (file)
@@ -284,7 +284,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
         "source" => %{
           "fields" => [],
           "note" => "Tester Number 6",
-          "pleroma" => %{"actor_type" => "Person", "is_discoverable" => false},
+          "pleroma" => %{"actor_type" => "Person", "discoverable" => false},
           "sensitive" => false
         },
         "statuses_count" => 1,