Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
liamwhite committed Jul 29, 2024
2 parents 307f59e + 40fa033 commit d345bbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/philomena/notifications.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/philomena/notifications/category.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/philomena_web/templates/notification/_image.html.slime
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
div
' Someone
| merged #
= source.id
=> source.id
' into

strong>
Expand Down

0 comments on commit d345bbc

Please sign in to comment.