From 0462dcfe33982aa38907ace772158a6dc7803f77 Mon Sep 17 00:00:00 2001 From: Juan M Date: Sun, 28 Apr 2024 11:24:03 -0300 Subject: [PATCH 1/4] Not fetch description --- netlify/loaders/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/loaders/api.js b/netlify/loaders/api.js index 26355e4..89a1723 100644 --- a/netlify/loaders/api.js +++ b/netlify/loaders/api.js @@ -3,7 +3,7 @@ export async function getEventInfo(eventId, env) { return null } const response = await fetch( - `${env.FAMILY_API_URL}/event/${eventId}?description=true&metrics=true&fresh=true&refresh=false`, + `${env.FAMILY_API_URL}/event/${eventId}?description=false&metrics=true&fresh=true&refresh=false`, { headers: { 'x-api-key': env.FAMILY_API_KEY, From 9b04d86e12b5b64637b09c5b38ceeb5dd3375a19 Mon Sep 17 00:00:00 2001 From: Juan M Date: Sun, 28 Apr 2024 11:24:33 -0300 Subject: [PATCH 2/4] Not fresh --- netlify/loaders/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netlify/loaders/api.js b/netlify/loaders/api.js index 89a1723..d196e38 100644 --- a/netlify/loaders/api.js +++ b/netlify/loaders/api.js @@ -3,7 +3,7 @@ export async function getEventInfo(eventId, env) { return null } const response = await fetch( - `${env.FAMILY_API_URL}/event/${eventId}?description=false&metrics=true&fresh=true&refresh=false`, + `${env.FAMILY_API_URL}/event/${eventId}?description=false&metrics=true&fresh=false&refresh=false`, { headers: { 'x-api-key': env.FAMILY_API_KEY, @@ -64,7 +64,7 @@ export async function getEvents(eventIds, env) { return null } const response = await fetch( - `${env.FAMILY_API_URL}/events/${eventIds.map((eventId) => encodeURIComponent(eventId)).join(',')}?fresh=true`, + `${env.FAMILY_API_URL}/events/${eventIds.map((eventId) => encodeURIComponent(eventId)).join(',')}?fresh=false`, { headers: { 'x-api-key': env.FAMILY_API_KEY, @@ -106,7 +106,7 @@ export async function getEventsOwners(eventIds, env) { } const response = await fetch( `${env.FAMILY_API_URL}/events` + - `/${eventIds.map((eventId) => encodeURIComponent(eventId)).join(',')}/owners?fresh=true`, + `/${eventIds.map((eventId) => encodeURIComponent(eventId)).join(',')}/owners?fresh=false`, { headers: { 'x-api-key': env.FAMILY_API_KEY, From 2d012a1991823e0655a0406990b0793494d3f50e Mon Sep 17 00:00:00 2001 From: Juan M Date: Mon, 29 Apr 2024 09:32:24 -0300 Subject: [PATCH 3/4] Fix linkify --- src/utils/linkify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/linkify.js b/src/utils/linkify.js index fde3b7c..16c8623 100644 --- a/src/utils/linkify.js +++ b/src/utils/linkify.js @@ -1,7 +1,7 @@ import { POAP_SCAN_URL } from '../models/poap' const regexp = - /[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/gi; + /https?:\/\/(www.)?[a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/gi; export default function linkify(text, Anchor) { const texts = [] From a2e25cfb877667676b1dd08e1f30c28fc69f45fa Mon Sep 17 00:00:00 2001 From: Juan M Date: Mon, 29 Apr 2024 09:33:59 -0300 Subject: [PATCH 4/4] Version 1.12.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e89bfd7..7fb1299 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/poap-family", - "version": "1.12.4", + "version": "1.12.5", "author": { "name": "POAP", "url": "https://poap.xyz"