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
iex> unread_notifications_for_user(user, page_size: 10)
%{
[
channel_live: [],
forum_post: [%ForumPostNotification{...}, ...],
forum_topic: [%ForumTopicNotification{...}, ...],
gallery_image: [],
image_comment: [%ImageCommentNotification{...}, ...],
image_merge: []
}
]
"""
def unread_notifications_for_user(user, pagination) do

View file

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

View file

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