From 88b593a63ff3d607d6f98553654c46bc7cfc0b7b Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 31 Jul 2018 11:44:12 +0200 Subject: Drop glitch-style account bio fields Upstream's implementation has been merged a while ago and is the preferred way to set fields, as it is the only one compatible with upstream and is more user-friendly. This commit deletes the legacy glitch-soc FrontMatter functionality in order to clean up the code and make it easier to maintain. --- .../glitch/features/account/components/header.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'app/javascript/flavours/glitch/features/account/components/header.js') diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index 59d9477d6..174df0cc9 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -7,9 +7,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; import Avatar from 'flavours/glitch/components/avatar'; import IconButton from 'flavours/glitch/components/icon_button'; -import emojify from 'flavours/glitch/util/emoji'; import { me } from 'flavours/glitch/util/initial_state'; -import { processBio } from 'flavours/glitch/util/bio_metadata'; import classNames from 'classnames'; const messages = defineMessages({ @@ -83,7 +81,7 @@ export default class Header extends ImmutablePureComponent { actionBtn = ''; } - const { text, metadata } = processBio(account.get('note_emojified')); + const content = { __html: account.get('note_emojified') }; return (
@@ -104,7 +102,7 @@ export default class Header extends ImmutablePureComponent { {badge} -
+
{fields.size > 0 && (
@@ -117,17 +115,6 @@ export default class Header extends ImmutablePureComponent {
)} - {fields.size == 0 && metadata.length && ( -
- {metadata.map((pair, i) => ( -
-
-
-
- ))} -
- ) || null} - {info} {mutingInfo} {actionBtn} -- cgit