aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-08-26 15:20:42 +0300
committerGravatar Vitaly Takmazov2021-08-26 15:20:42 +0300
commitec5bee8daeea413922ffce2a7ffd750674088618 (patch)
treebc65baa40660aba8e33a1e210c591edfa97c18c5 /src/main/resources
parent810ea1a4b403bc000dad59da3a86e16854358e2b (diff)
ActivityPub: reduce newlines in note template to make Mastodon happy
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/templates/layouts/note.html6
-rw-r--r--src/main/resources/templates/views/macros/tags.html8
2 files changed, 3 insertions, 11 deletions
diff --git a/src/main/resources/templates/layouts/note.html b/src/main/resources/templates/layouts/note.html
index e832dc63..e22d76d5 100644
--- a/src/main/resources/templates/layouts/note.html
+++ b/src/main/resources/templates/layouts/note.html
@@ -1,5 +1 @@
-{% import "views/macros/tags" %}
-<p>{{ msg | formatMessage }}</p>
-{% if msg.tags | length > 0 %}
-<div class="msg-tags">{{ allTags(baseUri, msg.tags | tagsList) }}</div>
-{% endif %} \ No newline at end of file
+{% import "views/macros/tags" %}<p>{{ msg | formatMessage }}</p>{% if msg.tags | length > 0 %}<div class="msg-tags">{{ allTags(baseUri, msg.tags | tagsList) }}</div>{% endif %} \ No newline at end of file
diff --git a/src/main/resources/templates/views/macros/tags.html b/src/main/resources/templates/views/macros/tags.html
index c52847fc..d1b3fdea 100644
--- a/src/main/resources/templates/views/macros/tags.html
+++ b/src/main/resources/templates/views/macros/tags.html
@@ -1,11 +1,7 @@
{% macro tags(uname="", tagsList) %}
-{% for tag in tagsList %}
-<a class="hashtag" href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>
-{% endfor %}
+{% for tag in tagsList %}<a class="hashtag" href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>{% endfor %}
{% endmacro %}
{% macro allTags(baseUri, tagsList) %}
-{% for tag in tagsList %}
-<a class="hashtag" href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag }}</a>
-{% endfor %}
+{% for tag in tagsList %}<a class="hashtag" href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag }}</a>{% endfor %}
{% endmacro %} \ No newline at end of file