fix CW not being inherited corretly in responses
This commit is contained in:
parent
933bfa9acd
commit
74bd942407
|
@ -3,9 +3,10 @@
|
||||||
<app-waiting-animation class="waiting-icon status-form__sending--waiting"></app-waiting-animation>
|
<app-waiting-animation class="waiting-icon status-form__sending--waiting"></app-waiting-animation>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input [(ngModel)]="title" type="text" class="form-control form-control-sm" name="title" autocomplete="off" placeholder="Title, Content Warning (optional)" />
|
<input [(ngModel)]="title" type="text" class="form-control form-control-sm" name="title" autocomplete="off" placeholder="Title, Content Warning (optional)" title="title, content warning (optional)"/>
|
||||||
|
|
||||||
<textarea #reply [(ngModel)]="status" name="status" class="form-control form-control-sm" rows="5" required
|
<textarea #reply [(ngModel)]="status" name="status" class="form-control form-control-sm"
|
||||||
|
rows="5" required title="content"
|
||||||
placeholder="What's in your mind?" (keydown.control.enter)="onCtrlEnter()"></textarea>
|
placeholder="What's in your mind?" (keydown.control.enter)="onCtrlEnter()"></textarea>
|
||||||
|
|
||||||
<select class="form-control form-control-sm form-control--privacy" id="privacy" name="privacy"
|
<select class="form-control form-control-sm form-control--privacy" id="privacy" name="privacy"
|
||||||
|
|
|
@ -46,6 +46,8 @@ export class CreateStatusComponent implements OnInit {
|
||||||
for (const mention of uniqueMentions) {
|
for (const mention of uniqueMentions) {
|
||||||
this.status += `@${mention} `;
|
this.status += `@${mention} `;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.title = this.statusReplyingTo.spoiler_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -96,9 +98,7 @@ export class CreateStatusComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
let spoiler = this.title;
|
let spoiler = this.title;
|
||||||
if (this.statusReplyingToWrapper) {
|
|
||||||
spoiler = this.statusReplyingTo.spoiler_text;
|
|
||||||
}
|
|
||||||
|
|
||||||
const acc = this.toolsService.getSelectedAccounts()[0];
|
const acc = this.toolsService.getSelectedAccounts()[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue