Check that the welcome message is sent from the correct user.
authorlain <lain@soykaf.club>
Sat, 16 Feb 2019 16:24:31 +0000 (17:24 +0100)
committerlain <lain@soykaf.club>
Sat, 16 Feb 2019 16:24:31 +0000 (17:24 +0100)
test/user_test.exs

index d89fe379f9502387de07323d3b341c69a4a1f73c..92991d063d49688b5598dc77d9f5313e4dc69439 100644 (file)
@@ -212,6 +212,7 @@ defmodule Pleroma.UserTest do
       activity = Repo.one(Pleroma.Activity)
       assert registered_user.ap_id in activity.recipients
       assert activity.data["object"]["content"] =~ "cool site"
+      assert activity.actor == welcome_user.ap_id
 
       Pleroma.Config.put([:instance, :welcome_user_nickname], nil)
       Pleroma.Config.put([:instance, :welcome_message], nil)