mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
24 lines
384 B
Vue
24 lines
384 B
Vue
<script>
|
|
import HcAuthor from '~/components/Author.vue'
|
|
|
|
let mouseEnterTimer = null
|
|
let mouseLeaveTimer = null
|
|
|
|
export default {
|
|
name: 'HcRelatedUser',
|
|
extends: HcAuthor,
|
|
computed: {
|
|
author() {
|
|
return this.hasAuthor
|
|
? this.post
|
|
: {
|
|
name: 'Anonymus'
|
|
}
|
|
},
|
|
hasAuthor() {
|
|
return Boolean(this.post)
|
|
}
|
|
}
|
|
}
|
|
</script>
|