Show likes, reposts, bookmarks and listens

Untill now all those haven't been handled in any special way and
therefor were sometimes just simply empty if the post didn't
add any content. This patch shows the liked, etc., url in
the feed instead it being a entry without any content.
This commit is contained in:
Jeena 2017-07-13 21:14:36 +02:00
parent f0deb771e7
commit 2ad9619929

View file

@ -65,6 +65,25 @@
</div>
{% endif %}
{% set ofs = ['like', 'bookmark', 'repost', 'listen'] %}
{% for of in ofs %}
{% set properties = entry.get_property(of + "-of") %}
{% if properties %}
<div class="{{ of }}s">
{% for property in properties %}
<p>
{% if of == "like" %}
Liked:
{% else %}
{{ of | title }}ed:
{% endif %}
<a href="{{ property }}">{{ property }}</a>
</p>
{% endfor %}
</div>
{% endif %}
{% endfor %}
{% if entry.content %}
<div class="content">
{{ entry.content_cleaned | proxy_all | add_preview }}