Capture clicks on statuses to hijack mention clicks, match mention href to user somehow

This commit is contained in:
shpuld 2019-01-30 19:15:35 +02:00
parent 3cfbf0141f
commit 15603981f8
4 changed files with 88 additions and 3 deletions

View file

@ -24,9 +24,9 @@
<div :class="[userClass, { highlighted: userStyle, 'is-retweet': retweet }]" :style="[ userStyle ]" class="media status">
<div v-if="!noHeading" class="media-left">
<a :href="status.user.statusnet_profile_url" @click.stop.prevent.capture="toggleUserExpanded">
<router-link :to="userProfileLink" @click.stop.prevent.capture.native="toggleUserExpanded">
<StillImage class='avatar' :class="{'avatar-compact': compact, 'better-shadow': betterShadow}" :src="status.user.profile_image_url_original"/>
</a>
</router-link>
</div>
<div class="status-body">
<div class="usercard media-body" v-if="userExpanded">