1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00

Issue #197: Make PostStreamScrubber display numbers relating to only comment posts

This commit is contained in:
Ahsanul Bari
2015-12-20 15:41:06 +06:00
parent e0db5823ee
commit 7a8c7518bd
2 changed files with 30 additions and 13 deletions

View File

@@ -212,6 +212,7 @@ class PostStream extends Component {
attrs['data-time'] = time.toISOString();
attrs['data-number'] = post.number();
attrs['data-id'] = post.id();
attrs['data-type'] = post.contentType();
// If the post before this one was more than 4 hours ago, we will
// display a 'time gap' indicating how long it has been in between