Commit 04395cb9 authored by feld's avatar feld
Browse files

Grammar consistency

Most log messages are sentence fragments so make them consistent by
removing periods. Log messages that are expressing urgency with ! or
pending more work with "..." are OK.
parent 402e775a
......@@ -36,9 +36,9 @@ def inbox(%{assigns: %{valid_signature: true}} = conn, params) do
def inbox(conn, params) do
headers = Enum.into(conn.req_headers, %{})
if !(String.contains?(headers["signature"] || "", params["actor"])) do"Signature not from author, relayed message, ignoring.")"Signature not from author, relayed message, ignoring")
else"Signature error.")"Signature error")"Could not validate #{params["actor"]}")
......@@ -36,7 +36,7 @@ def validate_conn(conn) do
if validate_conn(conn, public_key) do
Logger.debug("Could not validate, re-fetching user and trying one more time.")
Logger.debug("Could not validate, re-fetching user and trying one more time")
# Fetch user anew and try one more time
with actor_id <- conn.params["actor"],
{:ok, _user} <- ActivityPub.make_user_from_ap_id(actor_id),
......@@ -122,7 +122,7 @@ def finger(account) do
{:ok, data}
e ->
Logger.debug(fn -> "Couldn't finger #{account}." end)
Logger.debug(fn -> "Couldn't finger #{account}" end)
Logger.debug(fn -> inspect(e) end)
{:error, e}
......@@ -98,7 +98,7 @@ def incoming_subscription_request(user, %{"hub.mode" => "subscribe"} = params) d
{:ok, websub}
else {:error, reason} ->
Logger.debug("Couldn't create subscription.")
Logger.debug("Couldn't create subscription")
{:error, reason}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment