more cleanup

This commit is contained in:
Henry Jameson 2026-08-24 16:49:19 +03:00
commit 39cfa6a5dd
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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,