diff options
| author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-03-01 09:47:21 +0100 |
|---|---|---|
| committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-03-01 09:47:21 +0100 |
| commit | 88fbbb5e9bc0f34ab265a4af3151cc96b0b00f0e (patch) | |
| tree | 22758847d286a7b0ed864d5e59053b7bae26da0d /src/components | |
| parent | 57e72b48c1fec74a860fd5abc75f0e9c4986c3f6 (diff) | |
status.vue: Add support for favicons
Put in replacement to the external icon when possible
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/status/status.vue | 12 |
1 files changed, 11 insertions, 1 deletions
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="#" |
