add get_text
template filter
returns object's `content` or `name`, the first is set, or an empty string. some objects don't have `content`, don't let templates rely on it
This commit is contained in:
@@ -198,7 +198,7 @@
|
||||
|
||||
|
||||
{% else %}
|
||||
{{ obj.content | update_inline_imgs | clean | replace_custom_emojis(obj) | code_highlight | safe }}
|
||||
{{ obj | get_text | update_inline_imgs | clean | replace_custom_emojis(obj) | code_highlight | safe }}
|
||||
{% endif %}
|
||||
|
||||
{% if obj | has_place %}
|
||||
|
Reference in New Issue
Block a user