Chats: Add updated_at to Schema and docs.
[akkoma] / lib / pleroma / web / mastodon_api / views / notification_view.ex
index 0b05d178bcac496d54738bba1bd9c8cfb96bcb13..2a99518317007c6bd52cc1e5a6dedaf149a8b3b3 100644 (file)
@@ -133,9 +133,6 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
           # Note: :skip_relationships option being applied to _account_ rendering (here)
           put_target(response, activity, reading_user, render_opts)
 
-        "follow" ->
-          response
-
         "pleroma:emoji_reaction" ->
           response
           |> put_status(parent_activity_fn.(), reading_user, render_opts)
@@ -144,6 +141,9 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
         "pleroma:chat_mention" ->
           put_chat_message(response, activity, reading_user, render_opts)
 
+        type when type in ["follow", "follow_request"] ->
+          response
+
         _ ->
           nil
       end