{% comment %}
@param actor [ActivityDrop] Actor
@param without_link [Boolean] Don't link
{% endcomment %}
{% if include.actor.available %}
{% assign id = include.actor.id | strip_html %}
{% assign instance_hostname = id | split: '/' %}
{% assign instance_hostname = instance_hostname[2] %}
{% capture mention %}
@{{- include.actor.preferredUsername | strip_html -}}@{{- instance_hostname -}}
{% endcapture %}
{% capture mention %}
{% if include.without_link %}
{{- mention -}}
{% else %}
{% include_cached external_link.html class="u-url mention" href=id text=mention %}
{% endif %}
{% endcapture %}
{{ mention | normalize_whitespace }}
{% else %}
{{ include.actor }}
{% endif %}