diff options
author | Hélène <pleroma-dev@helene.moe> | 2022-05-21 23:23:55 +0000 |
---|---|---|
committer | Duponin <pwet@dupon.in> | 2022-05-21 23:23:55 +0000 |
commit | a4659d993d1493406e9df4a26ada35cba50511c0 (patch) | |
tree | 051060a2becb37aee5b0491ccb4c16d0b4da9085 | |
parent | e3e8ff06f9c588563003ba9855f2d38b9d6e08b7 (diff) | |
download | pleroma-a4659d993d1493406e9df4a26ada35cba50511c0.tar.gz |
Apply Hélène suggestions
-rw-r--r-- | lib/pleroma/bbs/handler.ex | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex index 7314453af..a8f2fd37b 100644 --- a/lib/pleroma/bbs/handler.ex +++ b/lib/pleroma/bbs/handler.ex @@ -75,9 +75,7 @@ defmodule Pleroma.BBS.Handler do [head | _tail] -> # "> " <> hd <> "..." head - |> String.to_charlist() - |> Enum.take(80) - |> List.to_string() + |> String.slice(1, 80) |> (fn x -> "> " <> x <> "..." end).() end end).() @@ -136,7 +134,7 @@ defmodule Pleroma.BBS.Handler do |> Enum.each(&puts_activity/1) end else - _e -> IO.puts("An error occured when trying to show the thread...") + _e -> IO.puts("Could not show this thread...") end state @@ -144,7 +142,7 @@ defmodule Pleroma.BBS.Handler do def handle_command(%{user: user} = state, "n read") do Pleroma.Notification.clear(user) - IO.puts("All notifications are marked as read") + IO.puts("All notifications were marked as read") state end |