1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-06-22 17:45:23 +00:00

Truncate long card descriptions

This is useful for bots like the Onion repeater that stuff whole
articles into the description field.
This commit is contained in:
Jason McBrayer 2019-10-28 18:35:25 -04:00
parent 9af914db85
commit 507157782d

View File

@ -87,7 +87,7 @@
</a>
</strong>
<p>{{ toot.card.description }}</p>
<p>{{ toot.card.description |truncatechars_html:500}}</p>
</div>
</div>
</div>