{% set detail = json.loads(notification.detail) %} {% if notification.type == 'follow' %} {% set user = User[detail['user']] %}
{{ user.username }} started following you.
{% else %}Unknown Notification
{% endif %} {{ notification.pub_date | human_date }}