We should pass person object to the hovecrardable helper. In the current case `this` is the status message, not the status author. So, let's pass `author` instead of `this`.
44 lines
973 B
Handlebars
44 lines
973 B
Handlebars
<div class="reshare">
|
|
|
|
{{#if root}}
|
|
|
|
<div class="media">
|
|
|
|
{{#with root}}
|
|
<a href="/people/{{author.guid}}" class="img {{{hovercardable this}}}">
|
|
<img src="{{author.avatar.small}}" class="avatar" />
|
|
</a>
|
|
{{/with}}
|
|
|
|
{{#with root}}
|
|
<div class="bd">
|
|
<div>
|
|
<a href="/people/{{author.guid}}" class="author {{{hovercardable author}}}">{{author.name}}</a>
|
|
|
|
<span class="details grey">
|
|
-
|
|
<a href="/posts/{{id}}">
|
|
<time class="timeago" datetime="{{created_at}}"/>
|
|
</a>
|
|
|
|
{{#if interactions.reshares_count}}
|
|
-
|
|
{{t "stream.reshares" count=interactions.reshares_count}}
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
{{/with}}
|
|
|
|
{{> status-message}}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<p>
|
|
{{t "stream.original_post_deleted"}}
|
|
</p>
|
|
{{/if}}
|
|
|
|
</div>
|