diff options
author | Elijah Seed-Arita <elijaharita@gmail.com> | 2025-08-15 06:16:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-15 06:16:13 -0700 |
commit | 5ca665467e9cbedd78f21df76db8cfde8eaa66b4 (patch) | |
tree | ed5ac7602b6d2904b49a22ac0d182bd7154cc756 /src/screens/PostThread | |
parent | 4e0be91cffa15711eaa3116e01d761dd9a0a749b (diff) | |
download | voidsky-5ca665467e9cbedd78f21df76db8cfde8eaa66b4.tar.zst |
feat: use OP's language as recommendation when replying (#8832)
* feat: use OP's language as recommendation when replying * fix: address nits
Diffstat (limited to 'src/screens/PostThread')
4 files changed, 4 insertions, 0 deletions
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, }) |