diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-12-09 11:00:56 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-12-09 11:00:56 +0100 |
| commit | 30e9b22f96f2bf1cd895e993190f40afba159bb6 (patch) | |
| tree | 811c64694f98c10f55cdbaeb98ada50209b59580 /test/support | |
| parent | 6268b7e0eb400c1b5e227a73e6faee0f1e476db4 (diff) | |
| parent | d5a13c10ac6a9a5f8dbb1932ffc85260f079a2dc (diff) | |
| download | pleroma-30e9b22f96f2bf1cd895e993190f40afba159bb6.tar.gz pleroma-30e9b22f96f2bf1cd895e993190f40afba159bb6.zip | |
Merge branch 'develop' into feature/activitypub
Diffstat (limited to 'test/support')
| -rw-r--r-- | test/support/factory.ex | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index f499024a2..7f378915e 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -9,7 +9,7 @@ defmodule Pleroma.Factory do password_hash: Comeonin.Pbkdf2.hashpwsalt("test"), bio: sequence(:bio, &"Tester Number #{&1}") } - %{ user | ap_id: Pleroma.User.ap_id(user), follower_address: Pleroma.User.ap_followers(user) } + %{ user | ap_id: Pleroma.User.ap_id(user), follower_address: Pleroma.User.ap_followers(user), following: [Pleroma.User.ap_id(user)] } end def note_factory do @@ -26,7 +26,11 @@ defmodule Pleroma.Factory do "likes" => [], "like_count" => 0, "context" => "2hu", - "tag" => ["2hu"] + "summary" => "2hu", + "tag" => ["2hu"], + "emoji" => %{ + "2hu" => "corndog.png" + } } %Pleroma.Object{ @@ -47,7 +51,8 @@ defmodule Pleroma.Factory do } %Pleroma.Activity{ - data: data + data: data, + actor: data["actor"] } end |
