Save remote users with fqn as nickname.

This commit is contained in:
Roger Braun 2017-04-29 20:08:45 +02:00
commit 20015b4b67
4 changed files with 10 additions and 4 deletions

View file

@ -33,7 +33,7 @@ defmodule Pleroma.Web.OStatusTest do
user = Repo.get(Pleroma.User, user.id)
assert user.name == "Constance Variable"
assert user.nickname == "lambadalambda"
assert user.nickname == "lambadalambda@social.heldscal.la"
assert user.local == false
assert user.info["uri"] == uri
assert user.ap_id == uri
@ -60,6 +60,7 @@ defmodule Pleroma.Web.OStatusTest do
subject: "acct:shp@social.heldscal.la",
topic: "https://social.heldscal.la/api/statuses/user_timeline/29191.atom",
uri: "https://social.heldscal.la/user/29191",
host: "social.heldscal.la",
fqn: user
}
assert data == expected
@ -80,6 +81,7 @@ defmodule Pleroma.Web.OStatusTest do
subject: "https://social.heldscal.la/user/29191",
topic: "https://social.heldscal.la/api/statuses/user_timeline/29191.atom",
uri: "https://social.heldscal.la/user/29191",
host: "social.heldscal.la",
fqn: user
}
assert data == expected

View file

@ -118,7 +118,8 @@ defmodule Pleroma.Web.WebsubTest do
hub: "https://mastodon.social/api/push",
uri: "https://mastodon.social/users/lambadalambda",
nickname: "lambadalambda",
name: "Critical Value"
name: "Critical Value",
host: "mastodon.social"
}
assert expected == discovered