From e00285807164fab1cf4017db83327ab6cb206f4e Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 27 Nov 2018 18:37:46 +0100 Subject: [PATCH] Fix ostatus test. --- lib/pleroma/user/info.ex | 6 ++++-- test/web/ostatus/ostatus_test.exs | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index a11e50022..08370fe3c 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -19,7 +19,8 @@ defmodule Pleroma.User.Info do field(:keys, :string, default: nil) field(:settings, :map, default: nil) field(:magic_key, :string, default: nil) - # topic, subject, salmon, subscribe_address + field(:uri, :string, default: nil) + # topic, subject, salmon, subscribe_address, uri end def set_activation_status(info, deactivated) do @@ -97,7 +98,8 @@ defmodule Pleroma.User.Info do :source_data, :banner, :locked, - :magic_key + :magic_key, + :uri ]) end diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs index f95da8b0a..b2f25d215 100644 --- a/test/web/ostatus/ostatus_test.exs +++ b/test/web/ostatus/ostatus_test.exs @@ -17,7 +17,7 @@ defmodule Pleroma.Web.OStatusTest do {:ok, [activity]} = OStatus.handle_incoming(incoming) user = User.get_by_ap_id(activity.data["actor"]) - assert user.info["note_count"] == 1 + assert user.info.note_count == 1 assert activity.data["type"] == "Create" assert activity.data["object"]["type"] == "Note" @@ -319,7 +319,7 @@ defmodule Pleroma.Web.OStatusTest do assert user.name == "Constance Variable" assert user.nickname == "lambadalambda@social.heldscal.la" assert user.local == false - assert user.info["uri"] == uri + assert user.info.uri == uri assert user.ap_id == uri assert user.bio == "Call me Deacon Blues." assert user.avatar["type"] == "Image"