summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-08 17:15:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-08 17:15:07 +0900
commit4753dfa4d9c872f4cde02b0d16736890475ba7ff (patch)
tree24dbbd63fd34414bd72669e735066365e370821e
parentoops (diff)
downloadmisskey-4753dfa4d9c872f4cde02b0d16736890475ba7ff.tar.gz
misskey-4753dfa4d9c872f4cde02b0d16736890475ba7ff.tar.bz2
misskey-4753dfa4d9c872f4cde02b0d16736890475ba7ff.zip
oops
-rw-r--r--src/client/app/desktop/views/components/timeline.vue2
-rw-r--r--tools/migration/nighthike/4.js14
2 files changed, 14 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue
index ea8f0053bc..e1f88b62f3 100644
--- a/src/client/app/desktop/views/components/timeline.vue
+++ b/src/client/app/desktop/views/components/timeline.vue
@@ -96,7 +96,7 @@ export default Vue.extend({
onNote(note) {
// サウンドを再生する
if ((this as any).os.isEnableSounds) {
- const sound = new Audio(`${url}/assets/note.mp3`);
+ const sound = new Audio(`${url}/assets/post.mp3`);
sound.volume = localStorage.getItem('soundVolume') ? parseInt(localStorage.getItem('soundVolume'), 10) / 100 : 1;
sound.play();
}
diff --git a/tools/migration/nighthike/4.js b/tools/migration/nighthike/4.js
index d77c91ca80..5e12e64055 100644
--- a/tools/migration/nighthike/4.js
+++ b/tools/migration/nighthike/4.js
@@ -50,8 +50,20 @@ db.drive_files.files.renameCollection('driveFiles.files');
db.drive_files.chunks.renameCollection('driveFiles.chunks');
db.driveFiles.files.update({}, {
$rename: {
- 'metadata.user_id': 'metadata.userId',
+ 'metadata.user_id': 'metadata.userId'
+ }
+}, false, true);
+db.driveFiles.files.update({
+ 'metadata.folder_id': { $ne: null }
+}, {
+ $rename: {
'metadata.folder_id': 'metadata.folderId',
+ }
+}, false, true);
+db.driveFiles.files.update({
+ 'metadata.properties.average_color': { $ne: null }
+}, {
+ $rename: {
'metadata.properties.average_color': 'metadata.properties.avgColor'
}
}, false, true);