Compare commits

...

2 Commits
2.3.0 ... 2.3.1

Author SHA1 Message Date
638a2ab684 2.3.1 2018-05-06 02:08:40 +09:00
650f79d0fd Fix bugs 2018-05-06 02:08:27 +09:00
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "2.3.0",
"version": "2.3.1",
"clientVersion": "1.0.5207",
"codename": "nighthike",
"main": "./built/index.js",

View File

@ -14,6 +14,8 @@ module.exports = async (ctx: Koa.Context) => {
function wrap(url: string): string {
return url != null
? `https://images.weserv.nl/?url=${url.replace(/^https?:\/\//, '')}`
? url.startsWith('https://')
? url
: `https://images.weserv.nl/?url=${url.replace(/^http:\/\//, '')}`
: null;
}

View File

@ -4,7 +4,6 @@ block vars
- const user = note.user;
- const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`;
- const url = `${config.url}/notes/${note.id}`;
- const img = user.avatarId ? `${config.drive_url}/${user.avatarId}` : null;
block title
= `${title} | Misskey`
@ -18,7 +17,7 @@ block meta
meta(property='og:title' content= title)
meta(property='og:description' content= summary)
meta(property='og:url' content= url)
meta(property='og:image' content= img)
meta(property='og:image' content= user.avatarUrl)
if note.prev
link(rel='prev' href=`${config.url}/notes/${note.prev}`)