kopia lustrzana https://github.com/nextcloud/social
Prevent error when displaying notifications
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1761/head
rodzic
018c021e28
commit
36d3fbd576
|
@ -45,7 +45,7 @@
|
||||||
{{ t('social', 'boosted') }}
|
{{ t('social', 'boosted') }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<UserEntry v-if="isNotification && notificationIsAboutAnAccount" :item="item.account" />
|
<UserEntry v-if="isNotification && notificationIsAboutAnAccount" :display-follow-button="false" :item="item.account" />
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div v-if="entryContent" class="wrapper">
|
<div v-if="entryContent" class="wrapper">
|
||||||
<TimelineAvatar v-if="!isNotification" class="entry__avatar" :item="entryContent" />
|
<TimelineAvatar v-if="!isNotification" class="entry__avatar" :item="entryContent" />
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<p v-html="item.note" />
|
<p v-html="item.note" />
|
||||||
</div>
|
</div>
|
||||||
<FollowButton :uid="item.acct" />
|
<FollowButton v-if="displayFollowButton" :uid="item.acct" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -78,6 +78,10 @@ export default {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {},
|
default: () => {},
|
||||||
},
|
},
|
||||||
|
displayFollowButton: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
Ładowanie…
Reference in New Issue