mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 13:15:32 +01:00
Credo fixes.
This commit is contained in:
parent
0efa8aa0b9
commit
f3ea6ee2c8
@ -142,7 +142,8 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||||||
{:ok, chat} = Chat.bump_or_create(user.id, other_user.ap_id)
|
{:ok, chat} = Chat.bump_or_create(user.id, other_user.ap_id)
|
||||||
{:ok, cm_ref} = ChatMessageReference.create(chat, object, user.ap_id != actor.ap_id)
|
{:ok, cm_ref} = ChatMessageReference.create(chat, object, user.ap_id != actor.ap_id)
|
||||||
|
|
||||||
# We add a cache of the unread value here so that it doesn't change when being streamed out
|
# We add a cache of the unread value here so that it
|
||||||
|
# doesn't change when being streamed out
|
||||||
chat =
|
chat =
|
||||||
chat
|
chat
|
||||||
|> Map.put(:unread, ChatMessageReference.unread_count_for_chat(chat))
|
|> Map.put(:unread, ChatMessageReference.unread_count_for_chat(chat))
|
||||||
|
Loading…
Reference in New Issue
Block a user