From 88fbbb5e9bc0f34ab265a4af3151cc96b0b00f0e Mon Sep 17 00:00:00 2001
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
Date: Sun, 1 Mar 2020 09:47:21 +0100
Subject: status.vue: Add support for favicons

Put in replacement to the external icon when possible
---
 src/components/status/status.vue | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'src/components/status/status.vue')

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index ca295640..ec32b60c 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -150,8 +150,18 @@
                   class="source_url"
                   title="Source"
                 >
-                  <i class="button-icon icon-link-ext-alt" />
+                  <img
+                    height="18px"
+                    v-if="!!(status.user && status.user.favicon)"
+                    :src="status.user.favicon"
+                  />
+                  <i v-else class="button-icon icon-link-ext-alt" />
                 </a>
+                <img
+                  v-else-if="!!(status.user && status.user.favicon)"
+                  height="18px"
+                  :src="status.user.favicon"
+                />
                 <template v-if="expandable && !isPreview">
                   <a
                     href="#"
-- 
cgit v1.2.3-70-g09d2

