projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use Jason for rendering responses
[akkoma]
/
lib
/
pleroma
/
web
/
chat_channel.ex
diff --git
a/lib/pleroma/web/chat_channel.ex
b/lib/pleroma/web/chat_channel.ex
index f63f4bda1d1f5b92333bce15b5817530ed2f931a..b543909f14394451b83297c9803963d771d71d71 100644
(file)
--- a/
lib/pleroma/web/chat_channel.ex
+++ b/
lib/pleroma/web/chat_channel.ex
@@
-33,9
+33,11
@@
defmodule Pleroma.Web.ChatChannel do
end
defmodule Pleroma.Web.ChatChannel.ChatChannelState do
+ use Agent
+
@max_messages 20
- def start_link do
+ def start_link
(_)
do
Agent.start_link(fn -> %{max_id: 1, messages: []} end, name: __MODULE__)
end