Skip to content

Commit

Permalink
FIX: Compatibility with Steatite optimized pictures.
Browse files Browse the repository at this point in the history
For more details, see Hypertopic/Steatite@e67ae3f
  • Loading branch information
benel committed Jun 22, 2021
1 parent 191e172 commit 82fd5b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/itemPage/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SameNameBlock from './SameNameBlock.jsx';
import { DiscussionEmbed } from 'disqus-react';
import { t, Trans } from '@lingui/macro';

const HIDDEN = ['topic', 'resource', 'thumbnail', 'item', 'record'];
const HIDDEN = ['topic', 'resource', 'thumbnail', 'item', 'record', 'original'];

function getString(obj) {
if (Array.isArray(obj)) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/itemPage/Resource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let Resource = React.memo((props) => {

let getMediaType = (uri) => {
try {
if (/picture/.test(uri)) return 'image';
if (/optimized/.test(uri)) return 'image';
switch (uri.match(EXTENSION)) {
case '.gif':
case '.jpg':
Expand Down

0 comments on commit 82fd5b3

Please sign in to comment.