This commit is contained in:
Liam 2024-07-29 08:54:42 -04:00
parent fe59b046f7
commit 40fa0331b1
3 changed files with 6 additions and 6 deletions

View file

@ -41,14 +41,14 @@ defmodule Philomena.Notifications do
## Examples ## Examples
iex> unread_notifications_for_user(user, page_size: 10) iex> unread_notifications_for_user(user, page_size: 10)
%{ [
channel_live: [], channel_live: [],
forum_post: [%ForumPostNotification{...}, ...], forum_post: [%ForumPostNotification{...}, ...],
forum_topic: [%ForumTopicNotification{...}, ...], forum_topic: [%ForumTopicNotification{...}, ...],
gallery_image: [], gallery_image: [],
image_comment: [%ImageCommentNotification{...}, ...], image_comment: [%ImageCommentNotification{...}, ...],
image_merge: [] image_merge: []
} ]
""" """
def unread_notifications_for_user(user, pagination) do def unread_notifications_for_user(user, pagination) do

View file

@ -67,18 +67,18 @@ defmodule Philomena.Notifications.Category do
## Examples ## Examples
iex> unread_notifications_for_user(user, page_size: 10) iex> unread_notifications_for_user(user, page_size: 10)
%{ [
channel_live: [], channel_live: [],
forum_post: [%ForumPostNotification{...}, ...], forum_post: [%ForumPostNotification{...}, ...],
forum_topic: [%ForumTopicNotification{...}, ...], forum_topic: [%ForumTopicNotification{...}, ...],
gallery_image: [], gallery_image: [],
image_comment: [%ImageCommentNotification{...}, ...], image_comment: [%ImageCommentNotification{...}, ...],
image_merge: [] image_merge: []
} ]
""" """
def unread_notifications_for_user(user, pagination) do def unread_notifications_for_user(user, pagination) do
Map.new(categories(), fn category -> Enum.map(categories(), fn category ->
results = results =
category category
|> query_for_category_and_user(user) |> query_for_category_and_user(user)

View file

@ -8,7 +8,7 @@
div div
' Someone ' Someone
| merged # | merged #
= source.id => source.id
' into ' into
strong> strong>