Skip to content

Commit 82fd5b3

Browse files
committed
FIX: Compatibility with Steatite optimized pictures.
For more details, see Hypertopic/Steatite@e67ae3f
1 parent 191e172 commit 82fd5b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/itemPage/Item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import SameNameBlock from './SameNameBlock.jsx';
1212
import { DiscussionEmbed } from 'disqus-react';
1313
import { t, Trans } from '@lingui/macro';
1414

15-
const HIDDEN = ['topic', 'resource', 'thumbnail', 'item', 'record'];
15+
const HIDDEN = ['topic', 'resource', 'thumbnail', 'item', 'record', 'original'];
1616

1717
function getString(obj) {
1818
if (Array.isArray(obj)) {

src/components/itemPage/Resource.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let Resource = React.memo((props) => {
77

88
let getMediaType = (uri) => {
99
try {
10-
if (/picture/.test(uri)) return 'image';
10+
if (/optimized/.test(uri)) return 'image';
1111
switch (uri.match(EXTENSION)) {
1212
case '.gif':
1313
case '.jpg':

0 commit comments

Comments
 (0)