mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
Fix bug
This commit is contained in:
parent
f86cfdb1ce
commit
ce589fee8c
2 changed files with 7 additions and 0 deletions
|
@ -102,6 +102,7 @@ v12ではいくつかインスタンスにとって破壊的な変更があり
|
|||
* ハッシュタグまでnyaizeされている問題を修正
|
||||
* 他
|
||||
* 投稿フォームでCWが下書きに保存されない問題を修正
|
||||
* 投稿フォームで公開範囲が下書きに保存されない問題を修正
|
||||
* TypeError: Cannot read property 'stack' of undefined が出ることがある問題を修正
|
||||
* AP: カスタム絵文字を連続して書くと他のサービスでカスタム絵文字と認識されない問題を修正
|
||||
* AP: audience (visibility) パースの修正
|
||||
|
|
|
@ -262,6 +262,8 @@ export default Vue.extend({
|
|||
this.text = draft.data.text;
|
||||
this.useCw = draft.data.useCw;
|
||||
this.cw = draft.data.cw;
|
||||
this.applyVisibility(draft.data.visibility);
|
||||
this.localOnly = draft.data.localOnly;
|
||||
this.files = (draft.data.files || []).filter(e => e);
|
||||
if (draft.data.poll) {
|
||||
this.poll = true;
|
||||
|
@ -303,6 +305,8 @@ export default Vue.extend({
|
|||
this.$watch('cw', () => this.saveDraft());
|
||||
this.$watch('poll', () => this.saveDraft());
|
||||
this.$watch('files', () => this.saveDraft());
|
||||
this.$watch('visibility', () => this.saveDraft());
|
||||
this.$watch('localOnly', () => this.saveDraft());
|
||||
},
|
||||
|
||||
trimmedLength(text: string) {
|
||||
|
@ -501,6 +505,8 @@ export default Vue.extend({
|
|||
text: this.text,
|
||||
useCw: this.useCw,
|
||||
cw: this.cw,
|
||||
visibility: this.visibility,
|
||||
localOnly: this.localOnly,
|
||||
files: this.files,
|
||||
poll: this.poll && this.$refs.poll ? (this.$refs.poll as any).get() : undefined
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue