Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 3e12710

Browse files
committed
DEV: Ai summary utilizing name instead of username
1 parent 94e0834 commit 3e12710

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/summarization/strategies/topic_summary.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@ def highest_target_number
1313
end
1414

1515
def targets_data
16+
name_or_username =
17+
if SiteSetting.enable_names && !SiteSetting.prioritize_username_in_ux
18+
:name || :username
19+
else
20+
:username
21+
end
22+
1623
posts_data =
1724
(target.has_summary? ? best_replies : pick_selection).pluck(
1825
:post_number,
1926
:raw,
20-
:username,
27+
name_or_username,
2128
:last_version_at,
2229
)
2330

0 commit comments

Comments
 (0)