Just to leave the query completed in case others need it:
select ua.user_id, u.username, sum(action_type) actions, sum(case action_type when 5 then 1 else 0 end) replies from user_actions ua
join users u on u.id = ua.user_id
join topics t on target_topic_id = t.id
where ua.created_at > 'YYYY-MM-DD'::date and t.category_id = CATEGORY_ID
group by ua.user_id, u.username;
Just replace the YYY-MM-DD with your cutoff date and CATEGORY_ID with your category ID.
The result will show the user_id, username, actions, and replies.