From 7c6c373eb2cdfcde43f17b2c9928b8e18474432a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Mar 2022 14:49:42 -0500 Subject: [PATCH 1/2] Support account `website` field --- .../normalizers/__tests__/account-test.js | Bin 6502 -> 6737 bytes app/soapbox/normalizers/account.ts | 1 + 2 files changed, 1 insertion(+) diff --git a/app/soapbox/normalizers/__tests__/account-test.js b/app/soapbox/normalizers/__tests__/account-test.js index 538e2eb6bb8705dd3a75c7d241d0dd8f84528ff2..c52f86bd2552547cc8c68d3400db8d07e940479e 100644 GIT binary patch delta 70 zcmaE6bkSskBkv?8?#a14yzJ$vNyV8ZsgoCS+fLrk6Qcy>YwDHcJEdx Date: Thu, 17 Mar 2022 15:21:55 -0500 Subject: [PATCH 2/2] Change default avatar, add default header --- app/images/avatar-missing.png | Bin 14800 -> 4138 bytes app/images/avatar-missing.svg | 132 +++--------------- app/images/header-missing.png | Bin 0 -> 81 bytes .../normalizers/__tests__/account-test.js | Bin 6737 -> 7274 bytes app/soapbox/normalizers/account.ts | 13 ++ 5 files changed, 36 insertions(+), 109 deletions(-) create mode 100644 app/images/header-missing.png diff --git a/app/images/avatar-missing.png b/app/images/avatar-missing.png index b3e6b5709c611c8b26d18d3c55bac315ae46b176..6de33a5a49ef140a54261b3bac8e20c0199e9f35 100644 GIT binary patch literal 4138 zcmbu@XEa=E+XwI&CTcK9h`t5ML2wAs8A8;MsL@3vN_5dfMu{L!jNXC}y+$WmiZBu+ zT1M}6`b;GH8=^_rvqy+3UCOYh8Qa*S+@F|4zJRqQ}C-%LD>}SPb-a%s?P8 z;`C;qr9NrDJ3yf}`L~QMbZfq$YsS#Er!aNn=(=%C{Wzw9Y6A0S0@Fw}Nri2iL^n-h znkKQ$lbDuCbjuW`bqdo)^_>da{vFf)9ovDzbfB=EC`=~``xb?HOI@e2UDMcZsu^t0 zDO~Riws)2a*Efspo5j7G#lEAibGY|&xDQnGxR0ms{qxxVd0hVj75>va?$ZKpU;#Hs zwT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s29ohCU-bu{;W`*}!zV(=GHUclCoC2fsV`2aDwB*hlQ@h(w3 zWovQ=P~*mMF#o%|@Mc=J66xj-DO;3)F~}fGn_j?B;Yv zU%At(0-w}6b5}*ty13c?=p6!Jf&g=Ik8v76`5tG@gxq2XOMzqVD+AOS{O-Sj+bJs7 zVwW_c6ed#&@4OBQr_h)#wx4v#fU^o)uC7WzbW8bgC}C{nM5!*9q;+_pXJ96!kW~io zrOL`UWfksiG04Df44v&SQU!>rxchYxtzYkQQi0h242wABL+$oA;M}p#eAN^7jbS>uYsK+9zEn~0LI)99?Dg*vnd}2s$0N1_`wT^G^9wj zI_(YUXsuASunc|S_GpY&yw;7BH!qHsUq#(2`I!LEgNL0I12uc~B)~0-?DiD)03rZD zin<*9MBpOk7fA&?nqy4q%_RkwZ82|AJ zoE!t@{C92)nD{?GQGq{!17-gc!~S#Zf0^w6nDM{N^}jIa|MGDEIn{rCxc~fz|Et4* zLv;V;P5=93|K%0_9j^Oll>hlb|2s|l|FBU1du;n}vHx!~{SVgY`5(;zY>fZ+VP4tK aV(i#=ulV2_$bplZAXzCT$!ZB`(0>E8Zt?m6 diff --git a/app/images/avatar-missing.svg b/app/images/avatar-missing.svg index 7eb1560898..d5833c90c2 100644 --- a/app/images/avatar-missing.svg +++ b/app/images/avatar-missing.svg @@ -1,116 +1,30 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - + xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml diff --git a/app/images/header-missing.png b/app/images/header-missing.png new file mode 100644 index 0000000000000000000000000000000000000000..26b59e75a08de1c5d3d7b0705e9fc19d317dc4cb GIT binary patch literal 81 zcmeAS@N?(olHy`uVBq!ia0vp^j35jm7|ip2ssJgbk|4ie28Oc9XDxs{E>9Q75RU7~ Y2_P8;#z%^KjDai$Pgg&ebxsLQ04O{U&j0`b literal 0 HcmV?d00001 diff --git a/app/soapbox/normalizers/__tests__/account-test.js b/app/soapbox/normalizers/__tests__/account-test.js index c52f86bd2552547cc8c68d3400db8d07e940479e..cbe45419f36d35641cd6b1b0af66e5fdd155d9e5 100644 GIT binary patch delta 250 zcmca;^2%buTJGfhyy6lC4_8MQ*NN3KtQo0^DXAOhL^4jE%`Bh_<`u;kmn4>CCTr@I zRR_iUdIkr3`ngXwWQyl;R delta 20 ccmaE5anWSL+KsO~7&qrIMM$vJYFcvv0A-yA$p8QV diff --git a/app/soapbox/normalizers/account.ts b/app/soapbox/normalizers/account.ts index f85bcb9248..a96c9ad2d0 100644 --- a/app/soapbox/normalizers/account.ts +++ b/app/soapbox/normalizers/account.ts @@ -97,6 +97,18 @@ const normalizeAvatar = (account: ImmutableMap) => { }); }; +// Add header, if missing +const normalizeHeader = (account: ImmutableMap) => { + const header = account.get('header'); + const headerStatic = account.get('header_static'); + const missing = require('images/header-missing.png'); + + return account.withMutations(account => { + account.set('header', header || headerStatic || missing); + account.set('header_static', headerStatic || header || missing); + }); +}; + // Normalize custom fields const normalizeFields = (account: ImmutableMap) => { return account.update('fields', ImmutableList(), fields => fields.map(FieldRecord)); @@ -189,6 +201,7 @@ export const normalizeAccount = (account: Record): IAccount => { normalizePleromaLegacyFields(account); normalizeEmojis(account); normalizeAvatar(account); + normalizeHeader(account); normalizeFields(account); normalizeVerified(account); normalizeBirthday(account);