diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-07-31 11:44:12 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-07-31 16:26:36 +0200 |
commit | 88b593a63ff3d607d6f98553654c46bc7cfc0b7b (patch) | |
tree | 458ac146f6fcc2264e6d96b1e2f3677b527b0ea9 /app/javascript/core | |
parent | c4bec9263cabdd141d5e83e57869dec97426c0d9 (diff) |
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.
Diffstat (limited to 'app/javascript/core')
-rw-r--r-- | app/javascript/core/settings.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/javascript/core/settings.js b/app/javascript/core/settings.js index c9edcf197..1add0314d 100644 --- a/app/javascript/core/settings.js +++ b/app/javascript/core/settings.js @@ -3,8 +3,6 @@ const { length } = require('stringz'); const { delegate } = require('rails-ujs'); -import { processBio } from 'flavours/glitch/util/bio_metadata'; - delegate(document, '.account_display_name', 'input', ({ target }) => { const nameCounter = document.querySelector('.name-counter'); @@ -17,8 +15,7 @@ delegate(document, '.account_note', 'input', ({ target }) => { const noteCounter = document.querySelector('.note-counter'); if (noteCounter) { - const noteWithoutMetadata = processBio(target.value).text; - noteCounter.textContent = 500 - length(noteWithoutMetadata); + noteCounter.textContent = 500 - length(target.value); } }); |