<mk-sub-post-content>
	<div class="body"><a class="reply" if={ post.reply_id }><i class="fa fa-reply"></i></a><span ref="text"></span><a class="quote" if={ post.repost_id } href={ '/post:' + post.repost_id }>RP: ...</a></div>
	<details if={ post.media }>
		<summary>({ post.media.length }個のメディア)</summary>
		<mk-images-viewer images={ post.media }/>
	</details>
	<details if={ post.poll }>
		<summary>%i18n:mobile.tags.mk-sub-post-content.poll%</summary>
		<mk-poll post={ post }/>
	</details>
	<style>
		:scope
			display block
			overflow-wrap break-word

			> .body
				> .reply
					margin-right 6px
					color #717171

				> .quote
					margin-left 4px
					font-style oblique
					color #a0bf46

			mk-poll
				font-size 80%

	</style>
	<script>
		import compile from '../../common/scripts/text-compiler';

		this.post = this.opts.post;

		this.on('mount', () => {
			if (this.post.text) {
				const tokens = this.post.ast;
				this.refs.text.innerHTML = compile(tokens, false);

				this.refs.text.children.forEach(e => {
					if (e.tagName == 'MK-URL') riot.mount(e);
				});
			}
		});
	</script>
</mk-sub-post-content>
