Compare commits

...

15 Commits

Author SHA1 Message Date
syuilo
d66e4b7ff9 Merge branch 'develop' 2019-04-14 20:38:55 +09:00
syuilo
7f9789cf65 11.0.0 2019-04-14 20:36:13 +09:00
syuilo
b41c18e033 New translations ja-JP.yml (English) (#4681) 2019-04-14 20:31:15 +09:00
syuilo
3c73a7ec6d inc/dec score 2019-04-14 20:28:57 +09:00
syuilo
182c09d952 Update note.ts 2019-04-14 20:26:47 +09:00
syuilo
9fb86aed04 Clean up 2019-04-14 18:18:20 +09:00
syuilo
83b7010d6a 10.100.0 2019-04-09 21:13:52 +09:00
syuilo
71654cbe47 Fix #4636 2019-04-09 21:11:05 +09:00
syuilo
e8f96e848a Merge branch 'v10' of https://github.com/syuilo/misskey into v10 2019-04-09 21:10:36 +09:00
syuilo
251abf21d4 Update .gitignore 2019-04-09 21:10:18 +09:00
MeiMei
d103427932 Fix non media thumbnails (#4380) 2019-04-09 21:07:46 +09:00
MeiMei
592cdfa910 ユーザーリストでフォローボタンを表示するように (#4654) 2019-04-08 20:18:42 +09:00
MeiMei
f2ad1a0406 Fix: 投稿ウィジットでローカルのみの公開範囲で投稿できない (#4653) 2019-04-08 20:16:00 +09:00
MeiMei
82af9320c0 Fix: TLを遡った時に抜けがある時がある (v10) (#4629)
* Update the cursor when the timeline is updated

* fix releaseQueue
2019-04-08 15:18:44 +09:00
MeiMei
fceebf7388 Fix #4562 (#4563) 2019-04-08 15:17:39 +09:00
12 changed files with 13 additions and 8 deletions

View File

@@ -966,6 +966,7 @@ common/views/components/password-settings.vue:
changed: "Password changed"
failed: "Failed to change password"
common/views/components/post-form-attaches.vue:
attach-cancel: "Remove Attachment"
mark-as-sensitive: "Mark as 'sensitive'"
unmark-as-sensitive: "Unmark as 'sensitive'"
desktop/views/components/sub-note-content.vue:

View File

@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "11.0.0-beta.16",
"version": "11.0.0",
"codename": "daybreak",
"repository": {
"type": "git",
@@ -13,7 +13,6 @@
"start": "node ./index.js",
"init": "node ./built/init.js",
"migrate": "node ./built/migrate.js",
"debug": "DEBUG=misskey:* node ./index.js",
"build": "webpack && gulp build",
"webpack": "webpack",
"watch": "webpack --watch",

View File

@@ -166,6 +166,7 @@ export default Vue.extend({
append(note) {
this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
},
releaseQueue() {

View File

@@ -85,7 +85,7 @@ export default Vue.extend({
this.makePromise = cursor => this.$root.api('users/notes', {
userId: this.user.id,
limit: fetchLimit + 1,
untilId: cursor ? cursor : undefined,
untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365,
withFiles: this.withFiles,
includeMyRenotes: this.$store.state.settings.showMyRenotes,
includeRenotedMyNotes: this.$store.state.settings.showRenotedMyNotes,

View File

@@ -166,6 +166,7 @@ export default Vue.extend({
append(note) {
this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
},
releaseQueue() {

View File

@@ -36,7 +36,7 @@ export default Vue.extend({
includeReplies: this.mode == 'with-replies',
includeMyRenotes: this.mode != 'my-posts',
withFiles: this.mode == 'with-media',
untilId: cursor ? cursor : undefined
untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365
}).then(notes => {
if (notes.length == fetchLimit + 1) {
notes.pop();

View File

@@ -160,6 +160,7 @@ export default Vue.extend({
append(note) {
this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
},
releaseQueue() {

View File

@@ -21,7 +21,7 @@ export default Vue.extend({
userId: this.user.id,
limit: fetchLimit + 1,
withFiles: this.withMedia,
untilId: cursor ? cursor : undefined
untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365
}).then(notes => {
if (notes.length == fetchLimit + 1) {
notes.pop();

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -125,7 +125,7 @@ export class Note {
public uri: string | null;
@Column('integer', {
default: 0
default: 0, select: false
})
public score: number;

View File

@@ -49,7 +49,8 @@ export default async (user: User, note: Note, reaction?: string) => {
})
.where('id = :id', { id: note.id })
.execute();
// v11 inc score
Notes.increment({ id: note.id }, 'score', 1);
perUserReactionsChart.update(user, note);

View File

@@ -30,7 +30,8 @@ export default async (user: User, note: Note) => {
})
.where('id = :id', { id: note.id })
.execute();
// v11 dec score
Notes.decrement({ id: note.id }, 'score', 1);
publishNoteStream(note.id, 'unreacted', {
reaction: exist.reaction,