{/* Left: Logo */}
-
-
diff --git a/frontend/src/pages/PostDetail.jsx b/frontend/src/pages/PostDetail.jsx
index cfafa34..dd575b5 100644
--- a/frontend/src/pages/PostDetail.jsx
+++ b/frontend/src/pages/PostDetail.jsx
@@ -16,6 +16,7 @@ export default function PostDetail({ postId, user, onBack }) {
const [volume, setVolume] = useState(1)
const [downloading, setDownloading] = useState(false)
const audioRef = useRef(null)
+ const [audioSrc, setAudioSrc] = useState(null)
useEffect(() => {
if (postId) {
@@ -34,6 +35,8 @@ export default function PostDetail({ postId, user, onBack }) {
// Load audio URL if available
if (postData.audio_url && audioRef.current) {
+ setPost(postData)
+ setAudioSrc(postData.audio_url)
audioRef.current.src = postData.audio_url
audioRef.current.load()
}
@@ -290,12 +293,14 @@ export default function PostDetail({ postId, user, onBack }) {
+