forked from GNUsocial/gnu-social
[UI] Use event 'ShowAttachment' to permit plugins like Embed to alter the representation
This commit is contained in:
parent
1df7be7e8a
commit
2782aa9924
@ -37,10 +37,16 @@
|
||||
<i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a> </i>
|
||||
</video>
|
||||
</div>
|
||||
{% else %}
|
||||
{% for show in handle_event('ShowAttachment', attachment) %}
|
||||
<div>
|
||||
{{ show | raw }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div>
|
||||
<i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a> </i>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user