diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 16:31:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 16:31:33 +0900 |
| commit | 8c46e5b3d91d95ae119f8722cd0af85c8b0f12c3 (patch) | |
| tree | b219b298650034fa54fdc9eb713feb5206ef7832 /src/remote | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | sharkey-8c46e5b3d91d95ae119f8722cd0af85c8b0f12c3.tar.gz sharkey-8c46e5b3d91d95ae119f8722cd0af85c8b0f12c3.tar.bz2 sharkey-8c46e5b3d91d95ae119f8722cd0af85c8b0f12c3.zip | |
投稿のレンダリングを改善
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/misc/get-note-html.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/remote/activitypub/misc/get-note-html.ts b/src/remote/activitypub/misc/get-note-html.ts index a63059a38d..5bca4eed62 100644 --- a/src/remote/activitypub/misc/get-note-html.ts +++ b/src/remote/activitypub/misc/get-note-html.ts @@ -11,7 +11,12 @@ export default function(note: INote) { if (note.poll != null) { const url = `${config.url}/notes/${note._id}`; // TODO: i18n - html += `<p>【投票】<br />${url}</p>`; + html += `<p><a href="${url}">【Misskeyで投票を見る】</a></p>`; + } + + if (note.renoteId != null) { + const url = `${config.url}/notes/${note.renoteId}`; + html += `<p>RE: <a href="${url}">${url}</a></p>`; } return html; |