Deletions: don't purge keys so Delete/Undo activities can be signed
authorAlex Gleason <alex@alexgleason.me>
Wed, 30 Jun 2021 06:48:17 +0000 (01:48 -0500)
committerAlex Gleason <alex@alexgleason.me>
Wed, 30 Jun 2021 07:02:24 +0000 (02:02 -0500)
lib/pleroma/user.ex
test/pleroma/user_test.exs

index 5d8b936aa3ac599d44c90385316e1118f0dbf76d..de3b8ca3b001f945708f6f85d0fa53d39f31bdeb 100644 (file)
@@ -1680,8 +1680,6 @@ defmodule Pleroma.User do
       email: nil,
       name: nil,
       password_hash: nil,
-      keys: nil,
-      public_key: nil,
       avatar: %{},
       tags: [],
       last_refreshed_at: nil,
index 181990e4befe07bf7ccd8cd7ef2389125880a036..ec0aaa9eb42c1fc601f3f6d7b5006c2d0aa96603 100644 (file)
@@ -1651,8 +1651,8 @@ defmodule Pleroma.UserTest do
              email: nil,
              name: nil,
              password_hash: nil,
-             keys: nil,
-             public_key: nil,
+             keys: "RSA begin buplic key",
+             public_key: "--PRIVATE KEYE--",
              avatar: %{},
              tags: [],
              last_refreshed_at: nil,