Skip to content

Commit

Permalink
Merge pull request #46 from slickage/user-posts-count
Browse files Browse the repository at this point in the history
User Posts Count
  • Loading branch information
akinsey authored Jan 14, 2025
2 parents d9eaa2e + ec57117 commit 3851606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/epochtalk_server/smf_query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ defmodule EpochtalkServer.SmfQuery do
direction = if desc, do: :desc, else: :asc

count_query =
from u in "smf_members",
where: u.id_member == ^id,
select: %{count: u.posts}
from m in "smf_messages",
where: m.id_member == ^id and m.id_board not in ^id_board_blacklist,
select: %{count: count(m.id_msg)}

from(m in "smf_messages",
limit: ^per_page,
Expand Down

0 comments on commit 3851606

Please sign in to comment.