diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-03-08 12:29:02 +0000 | 
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-03-08 12:29:02 +0000 | 
| commit | 460062f2b04220ffcd8f20aa842cc95582d1f849 (patch) | |
| tree | f56c298bed6b289aa2dd81766862265ccef05947 /test/web/twitter_api/representers/activity_representer_test.exs | |
| parent | 0f2bf3eefb0adba13a3f3d37e8d8b1bd414a33e4 (diff) | |
| parent | 611ca385dea3d611a97579000311cc42684305e6 (diff) | |
| download | pleroma-460062f2b04220ffcd8f20aa842cc95582d1f849.tar.gz pleroma-460062f2b04220ffcd8f20aa842cc95582d1f849.zip | |
Merge branch 'feature/activitypub' into 'develop'
Feature/activitypub
See merge request pleroma/pleroma!67
Diffstat (limited to 'test/web/twitter_api/representers/activity_representer_test.exs')
| -rw-r--r-- | test/web/twitter_api/representers/activity_representer_test.exs | 17 | 
1 files changed, 9 insertions, 8 deletions
| diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 385bf8e84..98a1705b0 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -75,17 +75,17 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do      date = DateTime.from_naive!(~N[2016-05-24 13:26:08.003], "Etc/UTC") |> DateTime.to_iso8601      {:ok, convo_object} = Object.context_mapping("2hu") |> Repo.insert - +    to = [ +      User.ap_followers(user), +      "https://www.w3.org/ns/activitystreams#Public", +      mentioned_user.ap_id +    ]      activity = %Activity{        id: 1,        data: %{          "type" => "Create",          "id" => "id", -        "to" => [ -          User.ap_followers(user), -          "https://www.w3.org/ns/activitystreams#Public", -          mentioned_user.ap_id -        ], +        "to" => to,          "actor" => User.ap_id(user),          "object" => %{            "published" => date, @@ -108,7 +108,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do          "published" => date,          "context" => "2hu"        }, -      local: false +      local: false, +      recipients: to      }      expected_html = "<span>2hu</span><br />alert('YAY')Some <img height='32px' width='32px' alt='2hu' title='2hu' src='corndog.png' /> content mentioning <a href=\"#{mentioned_user.ap_id}\">@shp</a>" @@ -134,7 +135,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do        "favorited" => false,        "repeated" => false,        "external_url" => "some url", -      "tags" => ["content", "mentioning", "nsfw"], +      "tags" => ["nsfw", "content", "mentioning"],        "activity_type" => "post",        "possibly_sensitive" => true,        "uri" => activity.data["object"]["id"] | 
