mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-24 07:28:11 +02:00
Improve image display by prioritizing Facebook feed URLs
Update image rendering in the new post page to use `facebookFeedUrl` when available, otherwise fallback to `originalUrl`. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/F3F3s9V
This commit is contained in:
1 parent
f5d2249633
commit
db45b98e5d
1 file changed
+2
-2
@@ -75,7 +75,7 @@ function SortableMediaItem({
|
|||||||
data-testid={`button-select-media-${media.id}`}
|
data-testid={`button-select-media-${media.id}`}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={media.originalUrl}
|
src={media.facebookFeedUrl || media.originalUrl}
|
||||||
alt={media.fileName}
|
alt={media.fileName}
|
||||||
className="w-full h-full object-cover"
|
className="w-full h-full object-cover"
|
||||||
/>
|
/>
|
||||||
@@ -510,7 +510,7 @@ export default function NewPost() {
|
|||||||
data-testid={`button-select-media-${media.id}`}
|
data-testid={`button-select-media-${media.id}`}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={media.originalUrl}
|
src={media.facebookFeedUrl || media.originalUrl}
|
||||||
alt={media.fileName}
|
alt={media.fileName}
|
||||||
className="w-full h-full object-cover"
|
className="w-full h-full object-cover"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user