summaryrefslogtreecommitdiffstats
path: root/templates/activities/_post.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-12 07:22:11 -0700
committerAndrew Godwin2022-12-12 11:56:49 -0700
commit8ffe4bc1453660c1f211496074ebcc68c924327e (patch)
tree7503fdcd6aafd32e9ec75dc7190699e004cf2935 /templates/activities/_post.html
parent35a45f1c55fba69d690929c9420df565e7c5efcc (diff)
downloadtakahe-8ffe4bc1453660c1f211496074ebcc68c924327e.tar.gz
takahe-8ffe4bc1453660c1f211496074ebcc68c924327e.tar.bz2
takahe-8ffe4bc1453660c1f211496074ebcc68c924327e.zip
A better way of handling URIs between local/remote
Diffstat (limited to 'templates/activities/_post.html')
-rw-r--r--templates/activities/_post.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index 099a35f..5802acd 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -3,7 +3,7 @@
<div class="post {% if reply %}reply{% endif %}" data-takahe-id="{{ post.id }}" role="article" tabindex="0">
<a href="{{ post.author.urls.view }}" tabindex="-1">
- <img src="{{ post.author.local_icon_url }}" class="icon">
+ <img src="{{ post.author.local_icon_url.relative }}" class="icon">
</a>
<time _="on click go url {% if link_original %}{{ post.url }}{% else %}{{ post.urls.view }}{% endif %} then halt">
@@ -75,8 +75,8 @@
<div class="attachments">
{% for attachment in post.attachments.all %}
{% if attachment.is_image %}
- <a href="{{ attachment.full_url }}" class="image">
- <img src="{{ attachment.thumbnail_url }}" title="{{ attachment.name }}" alt="{{ attachment.name }}" />
+ <a href="{{ attachment.full_url.relative }}" class="image">
+ <img src="{{ attachment.thumbnail_url.relative }}" title="{{ attachment.name }}" alt="{{ attachment.name }}" />
</a>
{% endif %}
{% endfor %}