{% comment %}
  @param activity [ActivityDrop]
{% endcomment %}

<!-- Initialize variables -->
{% assign items = site.i18n.fediverse_interactions %}
{% assign reactions = '' | split: ',' %}
{% assign activities = '' | split: ',' %}

<!-- Filter replies -->
{% if page.activity.replies.available %}
  {% assign activities = page.activity.replies.all_items | where_exp: "item", "item.inReplyTo" | sort: 'published' %}
{% endif %}

<!-- Optional: Filter and sort reactions if needed -->
{% assign reactions = reacti