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
z=3RBe_wVkeP%i$*aS)&qRIt;r*TheV-XY1L888-WCz3YQniX{hz(>5m4o_fD7dz+&
zoR$0V2jH|7S`
zrP
zz<#|Xtj}5eoM*bagWuY96h-RPUjl7ad1pi!yVRJ2vHgnkj3vAOh>?xglV*|xs~Jk=
z>Vi__FzL3E(=p70ii`$#M;c`e4pQ23@lof-g+&R2M{Aaw%K`S^E>7-ls}R8hzR>5v
zzGJO)<12^&5;h03?@;7fjwp|A%Hg;7AQH%&Dg={1V2{ua92Q@dv^%b+;=yoxcL&jO
z`_}Sau$fMwQ
zuQ@Yy^TGcVS1Gq1~Fy~@v^%A!3bH8R~hw#P0j
zN$GYU(1%V6^rK=mrZ7XKe2=LXyrHbw-X><|rfg$78w
zCmy-Ew>(MWl;=`OreKq}uO8M-1o>1PUVoiGJT8r*yrdbG*kr9L3Ahzl+xE>mH5{Cq~ScEy}X
zf`Lq}uYXTAHR>E!*DXS1TMC=}ft81g@9HpEB5=SUpo1!KZA!k+dW-_GoD(_PxRv!`
z*nP@}rv8e&Fl<3MBy844IXx^yjCap`J=M}Htu5Pf(j1aC_}|d@c)zJYEL44TE$+br
zb|HV6rgO)vV{Y-L-q{v1fSt#I@&4@NsB;Jt5dwJ2f@P?-X5IjjB|&yMQ=_sRMLRNnjQ%!x$?|TT
Date: Tue, 17 Apr 2018 20:05:32 +0900
Subject: [PATCH 009/292] v4983
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 2fcd68b1cb..b2947a4f68 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo ",
- "version": "0.0.4970",
+ "version": "0.0.4983",
"codename": "nighthike",
"license": "MIT",
"description": "A miniblog-based SNS",
From ac0146f9494e00a70ccc7324f0854bb499f29106 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Tue, 17 Apr 2018 20:17:00 +0900
Subject: [PATCH 010/292] :art:
---
src/client/app/desktop/views/components/timeline.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue
index f64b7eba97..cadff8071c 100644
--- a/src/client/app/desktop/views/components/timeline.vue
+++ b/src/client/app/desktop/views/components/timeline.vue
@@ -75,7 +75,7 @@ export default Vue.extend({
> header
padding 0 8px
- z-index 1
+ z-index 10
box-shadow 0 1px rgba(0, 0, 0, 0.08)
> span
From ff5ab7d12f34ab9eef592be6abc88459e6199453 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Tue, 17 Apr 2018 22:17:55 +0900
Subject: [PATCH 011/292] Fix bug
---
src/server/activitypub.ts | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts
index e27e2552f3..73ed43406d 100644
--- a/src/server/activitypub.ts
+++ b/src/server/activitypub.ts
@@ -1,3 +1,4 @@
+import * as mongo from 'mongodb';
import * as Router from 'koa-router';
const json = require('koa-json-body');
const httpSignature = require('http-signature');
@@ -49,7 +50,7 @@ router.get('/notes/:note', async (ctx, next) => {
}
const note = await Note.findOne({
- _id: ctx.params.note
+ _id: new mongo.ObjectID(ctx.params.note)
});
if (note === null) {
@@ -62,7 +63,7 @@ router.get('/notes/:note', async (ctx, next) => {
// outbot
router.get('/users/:user/outbox', async ctx => {
- const userId = ctx.params.user;
+ const userId = new mongo.ObjectID(ctx.params.user);
const user = await User.findOne({ _id: userId });
@@ -84,7 +85,7 @@ router.get('/users/:user/outbox', async ctx => {
// publickey
router.get('/users/:user/publickey', async ctx => {
- const userId = ctx.params.user;
+ const userId = new mongo.ObjectID(ctx.params.user);
const user = await User.findOne({ _id: userId });
@@ -102,7 +103,7 @@ router.get('/users/:user/publickey', async ctx => {
// user
router.get('/users/:user', async ctx => {
- const userId = ctx.params.user;
+ const userId = new mongo.ObjectID(ctx.params.user);
const user = await User.findOne({ _id: userId });
From d892e66072a622c40054933fbad19d6cb88aecc3 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Tue, 17 Apr 2018 22:20:25 +0900
Subject: [PATCH 012/292] Fix bug
---
src/remote/activitypub/models/note.ts | 4 +++-
src/remote/activitypub/models/person.ts | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts
index ab6dd99a77..b2b5077c5e 100644
--- a/src/remote/activitypub/models/note.ts
+++ b/src/remote/activitypub/models/note.ts
@@ -1,3 +1,4 @@
+import * as mongo from 'mongodb';
import { JSDOM } from 'jsdom';
import * as debug from 'debug';
@@ -22,7 +23,8 @@ export async function fetchNote(value: string | IObject, resolver?: Resolver): P
// URIがこのサーバーを指しているならデータベースからフェッチ
if (uri.startsWith(config.url + '/')) {
- return await Note.findOne({ _id: uri.split('/').pop() });
+ const id = new mongo.ObjectID(uri.split('/').pop());
+ return await Note.findOne({ _id: id });
}
//#region このサーバーに既に登録されていたらそれを返す
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index b755b2603a..dd9a80ae23 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -1,3 +1,4 @@
+import * as mongo from 'mongodb';
import { JSDOM } from 'jsdom';
import { toUnicode } from 'punycode';
import * as debug from 'debug';
@@ -21,7 +22,8 @@ export async function fetchPerson(value: string | IObject, resolver?: Resolver):
// URIがこのサーバーを指しているならデータベースからフェッチ
if (uri.startsWith(config.url + '/')) {
- return await User.findOne({ _id: uri.split('/').pop() });
+ const id = new mongo.ObjectID(uri.split('/').pop());
+ return await User.findOne({ _id: id });
}
//#region このサーバーに既に登録されていたらそれを返す
From 7c5b9ba1d1257edd1104da5d92befbb599ff0491 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Tue, 17 Apr 2018 22:25:51 +0900
Subject: [PATCH 013/292] =?UTF-8?q?=E8=89=AF=E3=81=84=E6=84=9F=E3=81=98?=
=?UTF-8?q?=E3=81=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
locales/en.yml | 4 ++--
locales/fr.yml | 4 ++--
locales/ja.yml | 4 ++--
src/client/app/desktop/views/pages/user/user.header.vue | 2 +-
src/client/app/mobile/views/pages/user.vue | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/locales/en.yml b/locales/en.yml
index b0f77838a4..9388aedbf8 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -406,7 +406,7 @@ desktop/views/pages/user/user.friends.vue:
no-users: "No users"
desktop/views/pages/user/user.header.vue:
- is-remote: "This user is not a user of Misskey, so the information is not accurate."
+ is-remote: "This user is a remote user, so the information is not accurate. "
view-remote: "See accurate information"
desktop/views/pages/user/user.home.vue:
@@ -591,7 +591,7 @@ mobile/views/pages/user.vue:
overview: "Overview"
timeline: "Timeline"
media: "Media"
- is-remote: "This user is not a user of Misskey, so the information might not be accurate."
+ is-remote: "This user is a remote user, so the information is not accurate. "
view-remote: "See accurate information"
mobile/views/pages/user/home.vue:
diff --git a/locales/fr.yml b/locales/fr.yml
index 137816ee9b..cd756194ab 100644
--- a/locales/fr.yml
+++ b/locales/fr.yml
@@ -406,7 +406,7 @@ desktop/views/pages/user/user.friends.vue:
no-users: "Pas d'utilisateurs"
desktop/views/pages/user/user.header.vue:
- is-remote: "Cet utilisateur n'est pas un utilisateur de Misskey. Certaines informations peuvent être erronées"
+ is-remote: "Cet utilisateur n'est pas un utilisateur de Misskey. Certaines informations peuvent être erronées "
view-remote: "Voir les informations détaillées"
desktop/views/pages/user/user.home.vue:
@@ -591,7 +591,7 @@ mobile/views/pages/user.vue:
overview: "Aperçu"
timeline: "Fil d'actualité"
media: "Media"
- is-remote: "Cet utilisateur n'est pas un utilisateur de Misskey. Certaines informations peuvent être erronées"
+ is-remote: "Cet utilisateur n'est pas un utilisateur de Misskey. Certaines informations peuvent être erronées "
view-remote: "Voir les informations détaillées"
mobile/views/pages/user/home.vue:
diff --git a/locales/ja.yml b/locales/ja.yml
index c8e02f7455..96b4a1d0ea 100644
--- a/locales/ja.yml
+++ b/locales/ja.yml
@@ -406,7 +406,7 @@ desktop/views/pages/user/user.friends.vue:
no-users: "よく話すユーザーはいません"
desktop/views/pages/user/user.header.vue:
- is-remote: "このユーザーはMisskeyのユーザーではないため情報が正確ではありません。"
+ is-remote: "このユーザーはリモートユーザーのため情報が正確ではありません。"
view-remote: "正確な情報を見る"
desktop/views/pages/user/user.home.vue:
@@ -591,7 +591,7 @@ mobile/views/pages/user.vue:
overview: "概要"
timeline: "タイムライン"
media: "メディア"
- is-remote: "このユーザーはMisskeyのユーザーではないため情報が正確ではありません。"
+ is-remote: "このユーザーはリモートユーザーのため情報が正確ではありません。"
view-remote: "正確な情報を見る"
mobile/views/pages/user/home.vue:
diff --git a/src/client/app/desktop/views/pages/user/user.header.vue b/src/client/app/desktop/views/pages/user/user.header.vue
index 7a0672d3d7..d9ad615164 100644
--- a/src/client/app/desktop/views/pages/user/user.header.vue
+++ b/src/client/app/desktop/views/pages/user/user.header.vue
@@ -1,6 +1,6 @@