fix(stream): resolve search deep-links without pagination stall
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 37s
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 37s
Search results can link to older posts that are not present in the first /browse page. The previous deep-link flow kept paginating the all-assets stream until the target id appeared, leaving users stuck on the waiting indicator for very old posts. Fetch /api/posts/:id directly for ?post= arrivals and inject the resolved target post at the top of the stream when it is not already in loaded items. The normal paginated feed still loads below for context. Keep the explicit finding/not-found status messages as a fallback for slow or missing direct fetches. Verified with search result c5eeb17d-3bd0-4d32-9c92-5efa6e4a015c: target post rendered within 100ms instead of waiting for pagination. Checks: tsc, format:check, tests, build.
This commit is contained in:
@@ -129,6 +129,10 @@ export const idDict: Dict = {
|
||||
loadMoreFailed:
|
||||
"Gagal memuat lebih banyak. Periksa koneksi Anda dan coba lagi.",
|
||||
retry: "Coba lagi",
|
||||
searchingForPost:
|
||||
"Mencari postingan Anda… memuat postingan lama, mohon tunggu.",
|
||||
postNotFound:
|
||||
"Postingan ini tidak ditemukan di daftar saat ini. Mungkin sudah dihapus.",
|
||||
paginationPrev: "Sebelumnya",
|
||||
paginationNext: "Berikutnya",
|
||||
listRange: "Menampilkan {{from}}–{{to}} dari {{total}}",
|
||||
|
||||
Reference in New Issue
Block a user