Skip to content
Snippets Groups Projects
Commit 5fb6aae0 authored by cyrinux's avatar cyrinux :construction_worker_tone1:
Browse files

feat: add tool icon if technical toot

parent 1232e477
No related branches found
No related tags found
1 merge request!166feat: add tool icon if technical toot
......@@ -69,12 +69,19 @@ const getData = async (
// Add 'technical-account' class if 'isEmergency' is true
const technicalClass = isEmergency ? " technical-account" : "";
const technicalEmoji = isEmergency ? " 🛠️" : "";
const postHTML = `<div class="mastodon-post${technicalClass}">
<div class="date-modified">
<a href="${tootURI}" target="_blank" title="Voir le pouet sur Mastodon">${capitalizeFirstLetter(dateCreated)} <i class="fa fa-up-right-from-square" aria-hidden="true"></i></a>
</div>
${tootContent}
</div>`;
<div class="mastodon-post-content">
<div class="date-modified">
<a href="${tootURI}" target="_blank" title="Voir le pouet sur Mastodon">
${capitalizeFirstLetter(dateCreated)}${technicalEmoji}
<i class="fa fa-up-right-from-square" aria-hidden="true"></i>
</a>
</div>
${tootContent}
</div>
</div>`;
if (isEmergency) {
// Emergency posts always appear at the top
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment