From 75cb0a15091827ef54c4cc456ba2cd8289ad7b09 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 26 Apr 2020 21:15:21 -0400 Subject: [PATCH] clean up --- .../create-status/create-status.component.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index 3be1fff1..a926199b 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -85,9 +85,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { const newLine = String.fromCharCode(13, 10); let content = value.status.content; - console.warn(content); content = this.tranformHtmlRepliesToReplies(content); - console.warn(content); while (content.includes('

') || content.includes('

') || content.includes('
') || content.includes('
') || content.includes('
')) { content = content.replace('

', '').replace('

', newLine + newLine).replace('
', newLine).replace('
', newLine).replace('
', newLine); @@ -99,8 +97,6 @@ export class CreateStatusComponent implements OnInit, OnDestroy { var dom = parser.parseFromString(content, 'text/html') this.status = dom.body.textContent; - console.warn(this.status); - this.statusStateService.setStatusContent(this.status, this.statusReplyingToWrapper); this.setVisibilityFromStatus(value.status); @@ -113,17 +109,6 @@ export class CreateStatusComponent implements OnInit, OnDestroy { .then((status: Status) => { let cwResult = this.toolsService.checkContentWarning(status); this.statusReplyingToWrapper = new StatusWrapper(cwResult.status, value.provider, cwResult.applyCw, cwResult.hide); - - // const mentions = this.getMentions(this.statusReplyingToWrapper.status, this.statusReplyingToWrapper.provider); - // for (const mention of mentions) { - // const name = `@${mention.split('@')[0]}`; - // if (this.status.includes(name)) { - // this.status = this.status.replace(name, `@${mention}`); - // } else { - // this.status = `@${mention} ` + this.status; - // } - // } - }) .catch(err => { this.notificationService.notifyHttpError(err, value.provider);