forked from GNUsocial/gnu-social
[TWIG][Attachments] Don't throw event with mimetype in its name
This commit is contained in:
parent
bc1fb007aa
commit
e4b2821657
@ -1,5 +1,5 @@
|
|||||||
{% set handled = false %}
|
{% set handled = false %}
|
||||||
{% for block in handle_event('ViewAttachment' ~ attachment.getMimetypeMajor() | capitalize , {'attachment': attachment, 'note': note}) %}
|
{% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note}) %}
|
||||||
{% set handled = true %}
|
{% set handled = true %}
|
||||||
{{ block | raw }}
|
{{ block | raw }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user