forked from AkkomaGang/akkoma-fe
status.vue: Add support for favicons
Put in replacement to the external icon when possible
This commit is contained in:
parent
57e72b48c1
commit
88fbbb5e9b
2 changed files with 12 additions and 1 deletions
|
@ -150,8 +150,18 @@
|
||||||
class="source_url"
|
class="source_url"
|
||||||
title="Source"
|
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>
|
</a>
|
||||||
|
<img
|
||||||
|
v-else-if="!!(status.user && status.user.favicon)"
|
||||||
|
height="18px"
|
||||||
|
:src="status.user.favicon"
|
||||||
|
/>
|
||||||
<template v-if="expandable && !isPreview">
|
<template v-if="expandable && !isPreview">
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
|
|
|
@ -71,6 +71,7 @@ export const parseUser = (data) => {
|
||||||
const relationship = data.pleroma.relationship
|
const relationship = data.pleroma.relationship
|
||||||
|
|
||||||
output.background_image = data.pleroma.background_image
|
output.background_image = data.pleroma.background_image
|
||||||
|
output.favicon = data.pleroma.favicon
|
||||||
output.token = data.pleroma.chat_token
|
output.token = data.pleroma.chat_token
|
||||||
|
|
||||||
if (relationship) {
|
if (relationship) {
|
||||||
|
|
Loading…
Reference in a new issue