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: {
|
props: {
|
||||||
url: {
|
url: {
|
||||||
required: true,
|
required: false,
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
|
|
@ -75,7 +75,7 @@ const MentionLink = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
user() {
|
user() {
|
||||||
return this.url && useUsersStore().findUserByUrl(this.url)
|
return this.url ? useUsersStore().findUserByUrl(this.url) : null
|
||||||
},
|
},
|
||||||
isYou() {
|
isYou() {
|
||||||
if (!this.currentUser) return false
|
if (!this.currentUser) return false
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ const Status = {
|
||||||
)
|
)
|
||||||
|
|
||||||
// User referenced in post might not be yet present in store
|
// 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
|
return user?.statusnet_profile_url
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -376,7 +376,7 @@ const Status = {
|
||||||
},
|
},
|
||||||
replyToName() {
|
replyToName() {
|
||||||
if (this.mainStatus.in_reply_to_screen_name) {
|
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 {
|
} else {
|
||||||
const user = useUsersStore().findUser(
|
const user = useUsersStore().findUser(
|
||||||
this.mainStatus.in_reply_to_user_id,
|
this.mainStatus.in_reply_to_user_id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue