<xf:macro name="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_message_in_the_conversation_y', {
				'name': username_link($reactionUser, false, {'defaultname': $fallbackName}),
				'reaction': alert_reaction($reactionId, 'medium')|preescaped,
				'title': '<a href="' . link('conversations/messages', $message) . '">' . $message.Conversation.title . '</a>'
			}) }}
		<xf:else />
			{{ phrase('x_reacted_to_ys_message_in_the_conversation_z', {
				'name': username_link($reactionUser, false, {'defaultname': $fallbackName}),
				'posterParams': 'href="' . link('conversations/messages', $message) . '"',
				'poster': $message.User.username,
				'reaction': alert_reaction($reactionId, 'medium')|preescaped,
				'title': '<a href="' . link('conversations/messages', $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 name="reaction_snippet" arg-reactionUser="{$reaction.ReactionUser}" arg-reactionId="{$reaction.reaction_id}" arg-message="{$content}" arg-date="{$reaction.reaction_date}" />