feat: truncate url

This commit is contained in:
Silver Ghost 2022-10-27 16:31:26 +03:00
parent 55c4b5df01
commit 3246b52556
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View File

@ -13,6 +13,7 @@ def sanitize_img_size(html: str):
def get_content(url: str):
if settings.READABILITY_HOST:
url = settings.READABILITY_HOST.rstrip(
'/') + '/api/content/v1/parser?url=' + url
try:

View File

@ -21,9 +21,7 @@
</p>
{% endif %}
<p class="post-meta">
<a href="{{ url.url }}">
{{ url.url }}
</a>
{{ url.url|urlizetrunc:70 }}
</p>
</div>
<!-- Divider-->