Skip to content

Commit

Permalink
Update packages/backend/src/core/DriveService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Sep 18, 2023
1 parent 272b8f2 commit 7c33955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/DriveService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ export class DriveService {
// noinspection PointlessBooleanExpressionJS
satisfyWebpublic = !!(
type !== 'image/svg+xml' && // security reason
type !== 'image/avif' // not supported by Mastodon and MS Edge
//!(metadata.exif ?? metadata.iptc ?? metadata.xmp ?? metadata.tifftagPhotoshop) &&
type !== 'image/avif' && // not supported by Mastodon and MS Edge
!(metadata.exif ?? metadata.iptc ?? metadata.xmp ?? metadata.tifftagPhotoshop)
//metadata.width && metadata.width <= 2048 &&
//metadata.height && metadata.height <= 2048
);
Expand Down

0 comments on commit 7c33955

Please sign in to comment.