Credo fixes.

This commit is contained in:
lain 2020-04-20 12:29:19 +02:00
commit 970b74383b
8 changed files with 12 additions and 11 deletions

View file

@ -7,8 +7,8 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
alias Pleroma.Activity
alias Pleroma.Notification
alias Pleroma.User
alias Pleroma.Object
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.MastodonAPI.AccountView
@ -83,7 +83,8 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
end
end
# This returns the notification type by activity, but both chats and statuses are in "Create" activities.
# This returns the notification type by activity, but both chats and statuses
# are in "Create" activities.
mastodon_type =
case Activity.mastodon_notification_type(activity) do
"mention" ->