From d103427932aa733e0677119d1bf7e83ee0720ee6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 9 Apr 2019 21:07:46 +0900 Subject: [PATCH] Fix non media thumbnails (#4380) --- src/client/assets/thumbnail-not-available.png | Bin 0 -> 5705 bytes src/misc/get-drive-file-url.ts | 2 +- src/server/file/send-drive-file.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/client/assets/thumbnail-not-available.png diff --git a/src/client/assets/thumbnail-not-available.png b/src/client/assets/thumbnail-not-available.png new file mode 100644 index 0000000000000000000000000000000000000000..07cad9919c5a1c6a9398799fc75c989c602386ff GIT binary patch literal 5705 zcmchacTkg0x5qbuK%{8sNRg;C8(o?R0SO%pMWpv4O}Z3;0b2Aa$aJPZH;W^FBX zBLJY(B^1DEs1xa(U^{i9byd|@1)$;u9F52~VQh zSZor$_Lxn=A1_HHY-|qo7-|fbO4O2a@T6L52>uwQ?obV?lBjsjvHKXLhU2L#{PD&3 zW98%|)z*^m_}Zl7Y_L=ZHa51Fnp#fI@!iMHZ&HeqbnI6 zj-%}yQ5ieXv!4ux`dyw`>q@rxE(Q9#jaL5Xq)^OZg8#^*bt;%4?K9_e>npfVx{fRO z|0>EoPd)elSvZ=XgG-p$O2Q%f$kbGL%^&!z5Y=>g`d=@TFzSnMpVk%S0 zf#21@3%I7ICJrGNNAW<$@xChSj;;!A-(hQ1!v#SamwdpemD#2)K)dem%x612>XUh;gsfIOHenlUv9&Zu@VUa-0mL* z@GymW6F5=grqI?b=hAr-Ksc+lO4h!Xo5dxLQ!ozU515fAj~13Q&i7LeS#dcm_Z;6# zxh64Wlf;6(VSW0v?fxj=tVVk1V|uvVeT9uPaO96>HUn!0)c3=Ou)bYUPYP|{g2pxH z{)iDMx3zVbLIeuzV#f}5e`VA9D0XfeoQ%RMgh)c$1K8%a>*&v5v3pCqe<)*{`r!SI zQpTE_&7LpCX04jttO2Q0MZaRTvjbbx+HuangB{Vm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