Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AyumuNekozuki committed Jan 18, 2024
1 parent 7f67c0c commit fe87162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class DriveFileEntityService {
@bindThis
private getProxiedUrl(url: string, mode?: 'static' | 'avatar'): string {
// みすほわ独自: 動画であればproxyさせない
if(url.endsWith('.mp4') || url.endsWith('.mov') || url.endsWith('.m4v') || url.endsWith('.3gp')){
if (url.endsWith('.mp4') || url.endsWith('.mov') || url.endsWith('.m4v') || url.endsWith('.3gp')) {
return url;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/media-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function getProxiedImageUrl(imageUrl: string, type?: 'preview' | 'emoji'
}

// みすほわ独自: 動画であればproxyさせない
if(imageUrl.endsWith('.mp4') || imageUrl.endsWith('.mov') || imageUrl.endsWith('.m4v') || imageUrl.endsWith('.3gp')){
if (imageUrl.endsWith('.mp4') || imageUrl.endsWith('.mov') || imageUrl.endsWith('.m4v') || imageUrl.endsWith('.3gp')) {
return imageUrl;
}

Expand Down

0 comments on commit fe87162

Please sign in to comment.