<xf:macro id="reaction_snippet" arg-reactionUser="!" arg-reactionId="!" arg-message="!" arg-date="!" arg-fallbackName="{{ phrase('unknown_member') }}">
	<div class="contentRow-title">
		<xf:if is="$message.user_id == $xf.visitor.user_id">
			{{ phrase('x_reacted_to_your_reply_in_the_direct_message_y', {
				'name': username_link($reactionUser, false, {'defaultname': $fallbackName}),
				'reaction': alert_reaction($reactionId, 'medium')|preescaped,
				'title': '<a href="' . link('direct-messages/replies', $message) . '">' . $message.Conversation.title . '</a>'
			}) }}
		<xf:else />
			{{ phrase('x_reacted_to_ys_reply_in_the_direct_message_z', {
				'name': username_link($reactionUser, false, {'defaultname': $fallbackName}),
				'posterParams': 'href="' . link('direct-messages/replies', $message) . '"',
				'poster': $message.User.username,
				'reaction': alert_reaction($reactionId, 'medium')|preescaped,
				'title': '<a href="' . link('direct-messages/replies', $message) . '">' . $message.Conversation.title . '</a>'
			}) }}
		</xf:if>
	</div>

	<div class="contentRow-snippet">{{
		snippet($message.message, $xf.options.newsFeedMessageSnippetLength, {'stripQuote': true})
	}}</div>

	<div class="contentRow-minor"><xf:date time="{$date}" /></div>
</xf:macro>

<xf:macro id="reaction_snippet" arg-reactionUser="{$reaction.ReactionUser}" arg-reactionId="{$reaction.reaction_id}" arg-message="{$content}" arg-date="{$reaction.reaction_date}" />