mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-18 15:57:31 -03:00
fix: no se mostraban los likes propios en la pagina de perfil
This commit is contained in:
@@ -53,7 +53,10 @@
|
|||||||
async function obtenerPosts() {
|
async function obtenerPosts() {
|
||||||
try {
|
try {
|
||||||
const req = await fetch(baseUrl + '/api/posts/user/' + params.perfil, {
|
const req = await fetch(baseUrl + '/api/posts/user/' + params.perfil, {
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${$sesionStore?.accessToken}`
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (req.ok) {
|
if (req.ok) {
|
||||||
setPosts(await req.json());
|
setPosts(await req.json());
|
||||||
|
|||||||
Reference in New Issue
Block a user