diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 01:46:35 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 01:46:35 +0900 |
| commit | c32c3c137028e32695a5464b7a7fc9faa3f13d96 (patch) | |
| tree | 0a4e042c160afcc8d82985f5cf53f39bdc4047a0 /src | |
| parent | Provide prev and next note link (diff) | |
| download | misskey-c32c3c137028e32695a5464b7a7fc9faa3f13d96.tar.gz misskey-c32c3c137028e32695a5464b7a7fc9faa3f13d96.tar.bz2 misskey-c32c3c137028e32695a5464b7a7fc9faa3f13d96.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/note.ts | 4 | ||||
| -rw-r--r-- | src/server/web/views/note.pug | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 3256a8c153..b2b93453e6 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -286,7 +286,7 @@ export const pack = async ( _id: -1 } }); - return prev ? prev._id : null; + return prev ? prev._id.toHexString() : null; })(); // Get next note info @@ -304,7 +304,7 @@ export const pack = async ( _id: 1 } }); - return next ? next._id : null; + return next ? next._id.toHexString() : null; })(); if (_note.replyId) { diff --git a/src/server/web/views/note.pug b/src/server/web/views/note.pug index 8cb1d954da..bc8dcdab8f 100644 --- a/src/server/web/views/note.pug +++ b/src/server/web/views/note.pug @@ -21,6 +21,6 @@ block meta meta(property='og:image' content= img) if note.prev - link(rel='prev' href=`${config.url}/notes/${note.prev.id}`) + link(rel='prev' href=`${config.url}/notes/${note.prev}`) if note.next - link(rel='next' href=`${config.url}/notes/${note.next.id}`) + link(rel='next' href=`${config.url}/notes/${note.next}`) |