Participations: Add marking as read and unread.
This commit is contained in:
parent
d1da6b155a
commit
64c1c3a407
3 changed files with 43 additions and 0 deletions
|
|
@ -5,6 +5,17 @@
|
|||
defmodule Pleroma.Factory do
|
||||
use ExMachina.Ecto, repo: Pleroma.Repo
|
||||
|
||||
def participation_factory do
|
||||
conversation = insert(:conversation)
|
||||
user = insert(:user)
|
||||
|
||||
%Pleroma.Conversation.Participation{
|
||||
conversation: conversation,
|
||||
user: user,
|
||||
read: false
|
||||
}
|
||||
end
|
||||
|
||||
def conversation_factory do
|
||||
%Pleroma.Conversation{
|
||||
ap_id: sequence(:ap_id, &"https://some_conversation/#{&1}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue