From 6b0db9b8778e39b0c5b0ddcf8afc7068d1d80076 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 7 Nov 2017 21:23:09 +0900 Subject: [PATCH] :v: --- src/file/assets/not-an-image.png | Bin 0 -> 4711 bytes src/file/server.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/file/assets/not-an-image.png diff --git a/src/file/assets/not-an-image.png b/src/file/assets/not-an-image.png new file mode 100644 index 0000000000000000000000000000000000000000..bf98b293f74bbe4419960fdb297bde8c0c953327 GIT binary patch literal 4711 zcmeHL`#;l*8~@CuRW2i^B(XZaha5tQ#TrVbay#n#O)gC(qOdUx%f?apeh-;*=*azc z&Y9bWQe$FDD3_6IXg0)TY-4RRcKJI0#P^5qs~?`%`*~i^>-D^z*YkRw=k{OQ0$h%OfSo@8K)D)lC>H=8d`o^C z!vFCm>=R1Y6k;*`Ih8obRl==6z_ot5q>rgwma`g7&~?CleBiKD94+us-G5aBEr6-G z?d}kXl?!`koIqc5;ggeFbZ+TEMykrt17UOU%NO3}5A=mnep^6lWqTRI1DFa+0;9#Y zKcd`}mbz8Th}EaqrZlyVRl-lUmNVbIws63!Wa*}edrWz;zHv8h>muDRc7Uweu4-j1 z%GN=-0Hd1_$-K9bKz*sIRwga#T%~uyfrMzL;ip-vS-C1(L2%PbfdPV~tiTkeD%&*+ z*Si#E@~R>Vq#d6=4F{a&o81An$cPHS!5wm?6KJE)Nm)!lJ*Cg;mSGMNmnT*Xc3 z0Y>=*f2FG$+q-sTOEG(3X-g)PM6dI^2$zS8mra;lu|~?4a%V`k8k=vv3%ysixe1cS z1-7>dApPoP3tg-GnLfua5I!t;N$lu6rLU;#rl_LwAApub>CYeO}&GdbxqgM8#aD@?{17ugWTShpqDcklT1($SED*BrYrz2Hd zepwW=0#>c%#xB4wJoE;zl$EE|!Qs%M3ZHrU9jWxFYkiP9 z#t8b1+`KCJ4YVOsAl=hhi9&4MF}i3$IfN*8y4CGD|A|7Ba52bgk-X?* z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57VV#mcU$HKPhArcqdIDWpjJ8PI&K09h;_To^EYVU^N8v{{wCKb&&;Xl4GBAP z?JnG+rqcQ3aaX+)v$yT@S%_S{LVUwQU~BJRn?zc_50-_+wkc#;qljO_B}0X(qL4JY z<1pgqG;*)1+Kstbv4jLxRzBY-`J)Hyfc?AC(5dcph~RcD-R@d9dM!2o4hhIa5==A$cT&MER*%+j zR)aX3^f)NS^i@Roq7C`;2dxV2^F2!=leh5_!NyF|L`QScSmPHhe`mkrqaMJ`)d6F$F20!3eLNnIK?!xOSg?A+jsNhU=oxL zEb4O5`H~@1VQc!9t7J&PL0wh$;zYePH7DuSKoFITzWTJ}k1D73DGWM{oR zgw^PfKeRh1RBr|c+{;^ex61(g;#8Z|u$vd>jm>H-ek$aDzob3bd}V68UmM|`u)(ht z4$RP{Wv^~BWsHL@dR8Bv;}5~eFm$@Pqwqwim#{Zp!{s^tP9UjGV^;BU>R<4vOT54x zMyuuh#k`oh^ZWeEUj82D80zMkL&{lKj0mE7x$qr6Xl8<;)r8(+!3(! z?J}x6gnf!@vLpW3qR!P)mQSxeN&9NzI(zNYX2xp_-E35I=Ice|GzD}m?9WkhrqP0< z9Yn&k+~mha-pU`h8O zQT%9u13kF^(~ZO=hk-)+p1I>@7=6#{G>y#8IkA=tDiR@re6%w(aPB9WDH3FL;%lgY zmFcdYAm^ZhfY@m6_?FOt+ldpN7q+&Mq;`ppVEQL)KXvo|HT@pkwVm!JnYm&6lP-6IMyi;KSdD<2UyFO+xse>nLC7N(ICN X2F4M0y0f;$A>iUUud|dhH-7#vA}?BQ literal 0 HcmV?d00001 diff --git a/src/file/server.ts b/src/file/server.ts index 2007667a83..449fa2d740 100644 --- a/src/file/server.ts +++ b/src/file/server.ts @@ -54,7 +54,7 @@ async function raw(data: Buffer, type: string, download: boolean, res: express.R async function thumbnail(data: Buffer, type: string, resize: number, res: express.Response): Promise { if (!/^image\/.*$/.test(type)) { - data = fs.readFileSync(`${__dirname}/assets/dummy.png`); + data = fs.readFileSync(`${__dirname}/assets/not-an-image.png`); } let g = gm(data);