diff options
| author | lain <lain@soykaf.club> | 2019-09-30 16:38:19 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-09-30 16:38:19 +0200 |
| commit | 19bc0b8c79765dc485e081651a4e4c589d18b970 (patch) | |
| tree | 3a5f6851ac6d88db68cae8aab17249a705718a01 /test/web/activity_pub | |
| parent | 08256e9299494c0bcd1a295c6079263277b21ba7 (diff) | |
| download | pleroma-19bc0b8c79765dc485e081651a4e4c589d18b970.tar.gz pleroma-19bc0b8c79765dc485e081651a4e4c589d18b970.zip | |
.
Diffstat (limited to 'test/web/activity_pub')
| -rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 4dc7d96d2..5a6464350 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -760,6 +760,20 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do end end + describe "unreacting to an object" do + test "adds an emoji reaction activity to the db" do + user = insert(:user) + reactor = insert(:user) + {:ok, activity} = CommonAPI.post(user, %{"status" => "YASSSS queen slay"}) + assert object = Object.normalize(activity) + + {:ok, reaction_activity, object} = ActivityPub.react_with_emoji(reactor, object, "🔥") + {:ok, unreaction_activity} = ActivityPub.unreact_with_emoji(reactor, reaction_activity.id) + + IO.inspect(object) + end + end + describe "like an object" do test_with_mock "sends an activity to federation", Pleroma.Web.Federator, [:passthrough], [] do Pleroma.Config.put([:instance, :federating], true) |
