From e80f99a72edc262ab4ffa65c980313fed8f4ae60 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 12 Apr 2019 14:56:46 -0400 Subject: [PATCH] Fix draft post metadata Previously it referenced an image on write.as and had the incorrect og:url property. This also fixes the canonical URL on single-user instances. Closes #91 --- static/img/wf-sq.png | Bin 0 -> 12390 bytes templates/post.tmpl | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 static/img/wf-sq.png diff --git a/static/img/wf-sq.png b/static/img/wf-sq.png new file mode 100644 index 0000000000000000000000000000000000000000..1136dc31a335522f32829b8e2369dd05ae0bb70f GIT binary patch literal 12390 zcmeHtXHZn#^X4H4DAB-64vLr%kSriz0t3MSlA|QaNphG`1VlxAm5hLjfaIj)j0h40 zNkh&#gXA>Z*Zdw9A^yz;3>8CsJuF4JCL#&4oLbSJTUcZkJ zDf~%_s3_oV)vbLS-Y6a_-nfp4*#8fuN$=pBgZ4MIoZuG(>_u|*Otc$(N%{DevOMJ| zIn5Cd+I<&phKWInA8+hWw^x&YNdSj>Mtl ze04u1N3&m&B7@C;R^5AK#~LFy8dqXAtbGa#3lm@qvNdtX5yHc=5IMZKu|G)QMFp?R z@cO$=26)F~AO6pm{9j)7pF1H#Fflh~)c+TA|1UfK=T85-DTl;EnMs+GzkXFat@8fv z?b|P2b4Vw?JAG$nck7Q7Zofpppe(Jb>MA26uU4a0*>eZ6m11a)ic zw3+tg_=%=yJ^_K(Bz^>V>--&m@0pl<{`BdSTCSOLO>J$e&)&9W&)4J=JUlFSLm~}qZEeq1<6qSM`qk-A z%NFwfeHz?xsx?8;|GdPxbGP}mzurw!iFv%y@5(1C8dB-6apugK7KuTxc<0&9>7B)L z4I`tE#~adBlU~~v&x`lFPsUgdmdPx#Fd+Np%rLmfq9f%&Pnmb|?c2Bew%wjQc{0=T z(U*dT`GdGkPZo(`ujc;dXz*G&ai_eQ&v;zL&*M8KMWrRJCjXdwJn%ZYx#jr=iRenW|<1cEt|qX$^jI0s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