diff options
author | lain <lain@soykaf.club> | 2020-11-02 12:08:20 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-02 12:08:20 +0000 |
commit | 24ce3249736c96686c00a10abe47659579535259 (patch) | |
tree | 9da0943abf651c74032e199e1625cf326744ba61 /test | |
parent | 9fbe9ef77436d6a9a176d264ee830300a2a37889 (diff) | |
parent | 4caad4e9101c34debfa90d2e89850d4125a471b3 (diff) | |
download | pleroma-24ce3249736c96686c00a10abe47659579535259.tar.gz pleroma-24ce3249736c96686c00a10abe47659579535259.zip |
Merge branch 'bugfix/poll_replies_count' into 'develop'
side_effects: Don’t increase_replies_count when it’s an Answer
Closes #2274
See merge request pleroma/pleroma!3114
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier/answer_handling_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier/answer_handling_test.exs b/test/pleroma/web/activity_pub/transmogrifier/answer_handling_test.exs index 0f6605c3f..e7d85a2c5 100644 --- a/test/pleroma/web/activity_pub/transmogrifier/answer_handling_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier/answer_handling_test.exs @@ -27,6 +27,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.AnswerHandlingTest do }) object = Object.normalize(activity) + assert object.data["repliesCount"] == nil data = File.read!("test/fixtures/mastodon-vote.json") @@ -41,7 +42,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.AnswerHandlingTest do assert answer_object.data["inReplyTo"] == object.data["id"] new_object = Object.get_by_ap_id(object.data["id"]) - assert new_object.data["replies_count"] == object.data["replies_count"] + assert new_object.data["repliesCount"] == nil assert Enum.any?( new_object.data["oneOf"], |