Possibility to redirect to the creator from the content cards

This commit is contained in:
Dominic Villemure
2024-08-25 16:39:59 -04:00
parent c2044619d1
commit 182d98310e
2 changed files with 4 additions and 12 deletions

View File

@@ -10,9 +10,9 @@
class="rounded-full"
width="32px"
height="32px">
<div class="capitalize px-2">
<router-link class="capitalize px-2" :to="`/@${props.content.createdByName}`">
{{ props.content.createdByName }}
</div>
</router-link>
<span class="text-subtitle-2 mt-1">
{{ time_ago(props.content.createdAt) }}
</span>

View File

@@ -10,9 +10,9 @@
class="rounded-full"
width="32px"
height="32px">
<div class="capitalize px-2">
<router-link class="capitalize px-2" :to="`/@${props.content.createdByName}`">
{{ props.content.createdByName }}
</div>
</router-link>
<span class="text-subtitle-2">
{{ time_ago(props.content.createdAt) }}
</span>
@@ -197,14 +197,6 @@ function toggleComments() {
messagesVisible.value = !messagesVisible.value;
}
function likeContent() {
console.log('Content liked');
}
function dislikeContent() {
console.log('Content disliked');
}
function getComponent(url) {
if (url.includes('youtube.com') || url.includes('youtu.be')) {
return YoutubePlayer;