kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1761 from nextcloud/artonge/fix/minor_fixes
Prevent error when displaying notificationspull/1765/head
commit
08d6f96188
|
@ -45,7 +45,7 @@
|
|||
{{ t('social', 'boosted') }}
|
||||
</div>
|
||||
</template>
|
||||
<UserEntry v-if="isNotification && notificationIsAboutAnAccount" :item="item.account" />
|
||||
<UserEntry v-if="isNotification && notificationIsAboutAnAccount" :display-follow-button="false" :item="item.account" />
|
||||
<template v-else>
|
||||
<div v-if="entryContent" class="wrapper">
|
||||
<TimelineAvatar v-if="!isNotification" class="entry__avatar" :item="entryContent" />
|
||||
|
|
|
@ -212,7 +212,7 @@ export default {
|
|||
this.$router.push({
|
||||
name: 'single-post',
|
||||
params: {
|
||||
account: this.item.account.display_name,
|
||||
account: this.item.account.username,
|
||||
id: this.item.id,
|
||||
type: 'single-post',
|
||||
},
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<p v-html="item.note" />
|
||||
</div>
|
||||
<FollowButton :uid="item.acct" />
|
||||
<FollowButton v-if="displayFollowButton" :uid="item.acct" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -78,6 +78,10 @@ export default {
|
|||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
displayFollowButton: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
Ładowanie…
Reference in New Issue