more cleanup
This commit is contained in:
parent
8c5680bd05
commit
39cfa6a5dd
2 changed files with 4 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ const MentionLink = {
|
|||
},
|
||||
props: {
|
||||
url: {
|
||||
required: true,
|
||||
required: false,
|
||||
type: String,
|
||||
},
|
||||
content: {
|
||||
|
|
@ -75,7 +75,7 @@ const MentionLink = {
|
|||
},
|
||||
computed: {
|
||||
user() {
|
||||
return this.url && useUsersStore().findUserByUrl(this.url)
|
||||
return this.url ? useUsersStore().findUserByUrl(this.url) : null
|
||||
},
|
||||
isYou() {
|
||||
if (!this.currentUser) return false
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ const Status = {
|
|||
)
|
||||
|
||||
// User referenced in post might not be yet present in store
|
||||
// since their data is not included in status data
|
||||
// since their data is not included in status data, just the id
|
||||
return user?.statusnet_profile_url
|
||||
}
|
||||
},
|
||||
|
|
@ -376,7 +376,7 @@ const Status = {
|
|||
},
|
||||
replyToName() {
|
||||
if (this.mainStatus.in_reply_to_screen_name) {
|
||||
return this.status.in_reply_to_screen_name
|
||||
return this.mainStatus.in_reply_to_screen_name
|
||||
} else {
|
||||
const user = useUsersStore().findUser(
|
||||
this.mainStatus.in_reply_to_user_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue