diff options
author | lain <lain@soykaf.club> | 2019-04-10 17:28:02 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-04-10 17:28:02 +0200 |
commit | cf353514feff50c2ccb9a8079ce5e695eb7f8cb6 (patch) | |
tree | b59aa3e60efb53373bd02339f69dcee2f88caf8f /test | |
parent | 20d9b9076051d2dea60919ad85aaf88154629dc4 (diff) | |
download | pleroma-cf353514feff50c2ccb9a8079ce5e695eb7f8cb6.tar.gz |
Participations: Add last activity.
Diffstat (limited to 'test')
-rw-r--r-- | test/conversation/participation_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/conversation/participation_test.exs b/test/conversation/participation_test.exs index c52b4ed88..5791fa0db 100644 --- a/test/conversation/participation_test.exs +++ b/test/conversation/participation_test.exs @@ -80,5 +80,12 @@ defmodule Pleroma.Conversation.ParticipationTest do |> Repo.preload(:conversation) assert participation_one.conversation.ap_id == activity_three.data["object"]["context"] + + # With last_activity_id + assert [participation_one] = + Participation.for_user_with_last_activity_id(user, %{limit: 1}) + |> Repo.preload(:conversation) + + assert participation_one.last_activity_id == activity_three.id end end |