Reports coming from Mastodon instances don't display the reported status #170

Closed
opened 2020-11-13 17:17:50 +00:00 by solidsanek · 1 comment
Member

Hello hello,

Today I received a new report on my instance. I received it by mail and in the mail the reported status was mentioned and linked correctly:
image

However, when I opened AdminFE, the reported status isn't there:
image

I've noticed that reports coming from Pleroma instances do seem to link the reported status correctly, but not for those coming from Mastodon it seems.

Hello hello, Today I received a new report on my instance. I received it by mail and in the mail the reported status was mentioned and linked correctly: ![image](/attachments/f2c77a78-c9eb-44ae-a146-72655d65e7e5) However, when I opened AdminFE, the reported status isn't there: ![image](/attachments/c63b6526-95fa-48cb-9793-9297101c8422) I've noticed that reports coming from Pleroma instances do seem to link the reported status correctly, but not for those coming from Mastodon it seems.
Owner

A report received by Mastodon referencing a post looks like this:

    %Pleroma.Activity{
      __meta__: #Ecto.Schema.Metadata<:loaded, "activities">,
      actor: "https://hackers.town/actor",
      bookmark: #Ecto.Association.NotLoaded<association :bookmark is not loaded>,
      data: %{
        "actor" => "https://hackers.town/actor",
        "cc" => ["https://bikeshed.party/users/feld"],
        "content" => "This is a test report, please ignore. I need to see what happens on the other side, if Pleroma properly ingests the associated status with the report.",
        "context" => "https://bikeshed.party/contexts/86e47691-d485-4099-85d9-bcb3d53facc2",
        "context_id" => 20565751,
        "id" => "https://bikeshed.party/activities/f294286f-ee9b-44a7-a1e6-f7bf85f1de4a",
        "object" => [
          "https://bikeshed.party/users/feld",
          %{
            "deleted" => true,
            "id" => "https://bikeshed.party/objects/f7da3406-10aa-4117-9d02-feecedfa8b48"
          }
        ],
        "published" => "2020-11-13T20:26:44.831126Z",
        "state" => "open",
        "to" => [],
        "type" => "Flag"
      },
      id: "A1ANcyHTa1pLhfWvTc",
      inserted_at: ~N[2020-11-13 20:26:44],
      local: true,
      notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>,
      object: #Ecto.Association.NotLoaded<association :object is not loaded>,
      pagination_id: nil,
      recipients: ["https://bikeshed.party/users/feld"],
      report_notes: [],
      thread_muted?: nil,
      updated_at: ~N[2020-11-13 20:26:44],
      user_actor: #Ecto.Association.NotLoaded<association :user_actor is not loaded>
    }

A report from Pleroma that references a report looks like this:

    %Pleroma.Activity{
      __meta__: #Ecto.Schema.Metadata<:loaded, "activities">,
      actor: "https://safe.millennial.space/users/feld",
      bookmark: #Ecto.Association.NotLoaded<association :bookmark is not loaded>,
      data: %{
        "actor" => "https://safe.millennial.space/users/feld",
        "cc" => ["https://bikeshed.party/users/feld"],
        "content" => "testing a report",
        "context" => "https://safe.millennial.space/contexts/a43200ab-3085-4dfb-a84b-612185370ab7",
        "context_id" => 20565774,
        "id" => "https://bikeshed.party/activities/54a047e2-4e07-49ce-9332-4de18407d5f1",
        "object" => [
          "https://bikeshed.party/users/feld",
          %{
            "actor" => %{
              "actor_type" => "Person",
              "approval_pending" => false,
              "avatar" => "https://media.bikeshed.party/pleroma/d478f21fbce02f3f6a95e0ccc804cafc914668829d48f71035345ebeeab34389.blob",
              "confirmation_pending" => false,
              "deactivated" => false,
              "display_name" => "It&#39;s a me",
              "id" => "1",
              "local" => true,
              "nickname" => "feld",
              "registration_reason" => nil,
              "roles" => %{"admin" => true, "moderator" => true},
              "tags" => [],
              "url" => "https://bikeshed.party/users/feld"
            },
            "content" => "<span class=\"h-card\"><a class=\"u-url mention\" data-user=\"21282\" href=\"https://queer.hacktivis.me/users/lanodan\" rel=\"ugc\">@<span>lanodan</span></a></span> <span class=\"h-card\"><a class=\"u-url mention\" data-user=\"9w2YmtzOdqyg6OyTTc\" href=\"https://kartoffel.cafe/users/fristi\" rel=\"ugc\">@<span>fristi</span></a></span> that would be really nice",
            "id" => "https://bikeshed.party/activities/4542ecf4-e506-4295-b7c4-a900f19c4674",
            "published" => "2020-11-13T20:25:25.358749Z",
            "type" => "Note"
          }
        ],
        "published" => "2020-11-13T20:28:48.392304Z",
        "state" => "open",
        "to" => [],
        "type" => "Flag"
      },
      id: "A1ANoMlKtlCmoivk2K",
      inserted_at: ~N[2020-11-13 20:28:48],
      local: true,
      notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>,
      object: #Ecto.Association.NotLoaded<association :object is not loaded>,
      pagination_id: nil,
      recipients: ["https://bikeshed.party/users/feld"],
      report_notes: [],
      thread_muted?: nil,
      updated_at: ~N[2020-11-13 20:28:48],
      user_actor: #Ecto.Association.NotLoaded<association :user_actor is not loaded>
    }
A report received by Mastodon referencing a post looks like this: ``` %Pleroma.Activity{ __meta__: #Ecto.Schema.Metadata<:loaded, "activities">, actor: "https://hackers.town/actor", bookmark: #Ecto.Association.NotLoaded<association :bookmark is not loaded>, data: %{ "actor" => "https://hackers.town/actor", "cc" => ["https://bikeshed.party/users/feld"], "content" => "This is a test report, please ignore. I need to see what happens on the other side, if Pleroma properly ingests the associated status with the report.", "context" => "https://bikeshed.party/contexts/86e47691-d485-4099-85d9-bcb3d53facc2", "context_id" => 20565751, "id" => "https://bikeshed.party/activities/f294286f-ee9b-44a7-a1e6-f7bf85f1de4a", "object" => [ "https://bikeshed.party/users/feld", %{ "deleted" => true, "id" => "https://bikeshed.party/objects/f7da3406-10aa-4117-9d02-feecedfa8b48" } ], "published" => "2020-11-13T20:26:44.831126Z", "state" => "open", "to" => [], "type" => "Flag" }, id: "A1ANcyHTa1pLhfWvTc", inserted_at: ~N[2020-11-13 20:26:44], local: true, notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>, object: #Ecto.Association.NotLoaded<association :object is not loaded>, pagination_id: nil, recipients: ["https://bikeshed.party/users/feld"], report_notes: [], thread_muted?: nil, updated_at: ~N[2020-11-13 20:26:44], user_actor: #Ecto.Association.NotLoaded<association :user_actor is not loaded> } ``` A report from Pleroma that references a report looks like this: ``` %Pleroma.Activity{ __meta__: #Ecto.Schema.Metadata<:loaded, "activities">, actor: "https://safe.millennial.space/users/feld", bookmark: #Ecto.Association.NotLoaded<association :bookmark is not loaded>, data: %{ "actor" => "https://safe.millennial.space/users/feld", "cc" => ["https://bikeshed.party/users/feld"], "content" => "testing a report", "context" => "https://safe.millennial.space/contexts/a43200ab-3085-4dfb-a84b-612185370ab7", "context_id" => 20565774, "id" => "https://bikeshed.party/activities/54a047e2-4e07-49ce-9332-4de18407d5f1", "object" => [ "https://bikeshed.party/users/feld", %{ "actor" => %{ "actor_type" => "Person", "approval_pending" => false, "avatar" => "https://media.bikeshed.party/pleroma/d478f21fbce02f3f6a95e0ccc804cafc914668829d48f71035345ebeeab34389.blob", "confirmation_pending" => false, "deactivated" => false, "display_name" => "It&#39;s a me", "id" => "1", "local" => true, "nickname" => "feld", "registration_reason" => nil, "roles" => %{"admin" => true, "moderator" => true}, "tags" => [], "url" => "https://bikeshed.party/users/feld" }, "content" => "<span class=\"h-card\"><a class=\"u-url mention\" data-user=\"21282\" href=\"https://queer.hacktivis.me/users/lanodan\" rel=\"ugc\">@<span>lanodan</span></a></span> <span class=\"h-card\"><a class=\"u-url mention\" data-user=\"9w2YmtzOdqyg6OyTTc\" href=\"https://kartoffel.cafe/users/fristi\" rel=\"ugc\">@<span>fristi</span></a></span> that would be really nice", "id" => "https://bikeshed.party/activities/4542ecf4-e506-4295-b7c4-a900f19c4674", "published" => "2020-11-13T20:25:25.358749Z", "type" => "Note" } ], "published" => "2020-11-13T20:28:48.392304Z", "state" => "open", "to" => [], "type" => "Flag" }, id: "A1ANoMlKtlCmoivk2K", inserted_at: ~N[2020-11-13 20:28:48], local: true, notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>, object: #Ecto.Association.NotLoaded<association :object is not loaded>, pagination_id: nil, recipients: ["https://bikeshed.party/users/feld"], report_notes: [], thread_muted?: nil, updated_at: ~N[2020-11-13 20:28:48], user_actor: #Ecto.Association.NotLoaded<association :user_actor is not loaded> } ```
Sign in to join this conversation.
No labels
blocked
stale
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/admin-fe#170
No description provided.