modificado el nombre del like post

This commit is contained in:
2025-12-02 20:26:02 -03:00
parent 4ba91dae21
commit 94d967ca77
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import { get } from 'svelte/store';
import { sesionStore } from '@/stores/usuario';
import type { Post } from '../../types';
export async function likePublicacion(post: Post) {
export async function likePost(post: Post) {
try {
const req = await fetch(get(apiBase) + `/api/posts/${post.id}/like`, {
method: post.isLiked ? 'DELETE' : 'POST',