mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 09:15:44 +01:00
Fix bug
This commit is contained in:
parent
29ad7ab0cf
commit
c32c3c1370
2 changed files with 4 additions and 4 deletions
|
@ -286,7 +286,7 @@ export const pack = async (
|
||||||
_id: -1
|
_id: -1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return prev ? prev._id : null;
|
return prev ? prev._id.toHexString() : null;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Get next note info
|
// Get next note info
|
||||||
|
@ -304,7 +304,7 @@ export const pack = async (
|
||||||
_id: 1
|
_id: 1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return next ? next._id : null;
|
return next ? next._id.toHexString() : null;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
if (_note.replyId) {
|
if (_note.replyId) {
|
||||||
|
|
|
@ -21,6 +21,6 @@ block meta
|
||||||
meta(property='og:image' content= img)
|
meta(property='og:image' content= img)
|
||||||
|
|
||||||
if note.prev
|
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
|
if note.next
|
||||||
link(rel='next' href=`${config.url}/notes/${note.next.id}`)
|
link(rel='next' href=`${config.url}/notes/${note.next}`)
|
||||||
|
|
Loading…
Reference in a new issue