mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 03:05:52 +02:00
Clean up
This commit is contained in:
@@ -282,10 +282,7 @@
|
||||
this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated);
|
||||
this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated);
|
||||
|
||||
// Riotのバグでnullを渡しても""になる
|
||||
// https://github.com/riot/riot/issues/2080
|
||||
//if (this.opts.folder)
|
||||
if (this.opts.folder && this.opts.folder != '') {
|
||||
if (this.opts.folder) {
|
||||
this.move(this.opts.folder);
|
||||
} else {
|
||||
this.fetch();
|
||||
|
||||
@@ -8,10 +8,7 @@
|
||||
<script>
|
||||
this.mixin('api');
|
||||
|
||||
// Riotのバグでnullを渡しても""になる
|
||||
// https://github.com/riot/riot/issues/2080
|
||||
//this.folder = this.opts.folder
|
||||
this.folder = this.opts.folder && this.opts.folder != '' ? this.opts.folder : null;
|
||||
this.folder = this.opts.folder ? this.opts.folder : null;
|
||||
this.browser = this.parent;
|
||||
|
||||
this.hover = false;
|
||||
|
||||
@@ -61,8 +61,6 @@
|
||||
this.mixin('i');
|
||||
|
||||
this.mode = this.opts.mode || 'timeline';
|
||||
// https://github.com/riot/riot/issues/2080
|
||||
if (this.mode == '') this.mode = 'timeline';
|
||||
|
||||
const _home = {
|
||||
left: [
|
||||
|
||||
@@ -320,14 +320,8 @@
|
||||
|
||||
this.inReplyToPost = this.opts.reply;
|
||||
|
||||
// https://github.com/riot/riot/issues/2080
|
||||
if (this.inReplyToPost == '') this.inReplyToPost = null;
|
||||
|
||||
this.repost = this.opts.repost;
|
||||
|
||||
// https://github.com/riot/riot/issues/2080
|
||||
if (this.repost == '') this.repost = null;
|
||||
|
||||
this.placeholder = this.repost
|
||||
? '%i18n:desktop.tags.mk-post-form.quote-placeholder%'
|
||||
: this.inReplyToPost
|
||||
|
||||
Reference in New Issue
Block a user