Don't set image.title to file basename in graphql (#5658)

* Don't set image title to filename in graphql
* Remove deprecated files field from image fragments
This commit is contained in:
WithoutPants
2025-02-18 16:32:33 +11:00
committed by GitHub
parent 50a900e83c
commit c8032f04fa
7 changed files with 31 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ import {
faSearch,
faTag,
} from "@fortawesome/free-solid-svg-icons";
import { objectTitle } from "src/core/files";
import { imageTitle } from "src/core/files";
import { TruncatedText } from "../Shared/TruncatedText";
import ScreenUtils from "src/utils/screen";
import { StudioOverlay } from "../Shared/GridCard/StudioOverlay";
@@ -197,7 +197,7 @@ export const ImageCard: React.FC<IImageCardProps> = (
className={`image-card zoom-${props.zoomIndex}`}
url={`/images/${props.image.id}`}
width={cardWidth}
title={objectTitle(props.image)}
title={imageTitle(props.image)}
linkClassName="image-card-link"
image={
<>