{% from 'components/timestamp.html' import timestamp %}
{% from 'components/links.html' import fancy_link %}
{% from 'components/fancy_image.html' import fancy_image, background_image %}
{% macro dm_card(
dm,
is_private=false,
is_global=false,
artist={},
class_name=none
) %}
{% set service = g.paysites[dm.service] %}
{% set artist_link = service.user.profile(dm.user) %}
{% set user_link = g.freesites.kemono.user.profile(dm.service, dm.user) %}
{% if is_global %}
{% if artist %}
{% else %}
{% endif %}
{% endif %}
{% if is_private %}
{% endif %}
{# writing it like this so there wouldn't be whitespaces/newlines in the output #}
{% endmacro %}