Properly cache the actor

This commit is contained in:
Thomas Sileo
2018-07-20 01:12:02 +02:00
parent 11fcf2dfb0
commit 610262d7b6
3 changed files with 58 additions and 8 deletions

View File

@@ -16,7 +16,11 @@
{% macro display_note(obj, perma=False, ui=False, likes=[], shares=[], meta={}, no_color=False) -%}
{% if meta.actor %}
{% set actor = meta.actor %}
{% else %}
{% set actor = obj.attributedTo | get_actor %}
{% endif %}
<div class="note h-entry" id="activity-{{ obj.id | permalink_id }}">
<div class="h-card p-author">