From 5ca665467e9cbedd78f21df76db8cfde8eaa66b4 Mon Sep 17 00:00:00 2001 From: Elijah Seed-Arita Date: Fri, 15 Aug 2025 06:16:13 -0700 Subject: feat: use OP's language as recommendation when replying (#8832) * feat: use OP's language as recommendation when replying * fix: address nits --- src/screens/PostThread/components/ThreadItemAnchor.tsx | 1 + src/screens/PostThread/components/ThreadItemPost.tsx | 1 + src/screens/PostThread/components/ThreadItemTreePost.tsx | 1 + src/screens/PostThread/index.tsx | 1 + 4 files changed, 4 insertions(+) (limited to 'src/screens/PostThread') diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx index 39e84d383..fc1f1caeb 100644 --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -254,6 +254,7 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({ author: post.author, embed: post.embed, moderation, + langs: record.langs, }, onPostSuccess: onPostSuccess, }) diff --git a/src/screens/PostThread/components/ThreadItemPost.tsx b/src/screens/PostThread/components/ThreadItemPost.tsx index 4337397f8..98520f16e 100644 --- a/src/screens/PostThread/components/ThreadItemPost.tsx +++ b/src/screens/PostThread/components/ThreadItemPost.tsx @@ -234,6 +234,7 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({ author: post.author, embed: post.embed, moderation, + langs: post.record.langs, }, onPostSuccess: onPostSuccess, }) diff --git a/src/screens/PostThread/components/ThreadItemTreePost.tsx b/src/screens/PostThread/components/ThreadItemTreePost.tsx index 31517a40f..b009695a9 100644 --- a/src/screens/PostThread/components/ThreadItemTreePost.tsx +++ b/src/screens/PostThread/components/ThreadItemTreePost.tsx @@ -298,6 +298,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({ author: post.author, embed: post.embed, moderation, + langs: post.record.langs, }, onPostSuccess: onPostSuccess, }) diff --git a/src/screens/PostThread/index.tsx b/src/screens/PostThread/index.tsx index f6ab554b6..f91daf54b 100644 --- a/src/screens/PostThread/index.tsx +++ b/src/screens/PostThread/index.tsx @@ -91,6 +91,7 @@ export function PostThread({uri}: {uri: string}) { author: post.author, embed: post.embed, moderation: anchor.moderation, + langs: post.record.langs, }, onPostSuccess: optimisticOnPostReply, }) -- cgit 1.4.1