Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(gmb): use Google's searchUrl as the post release URL

Gilad Resisi6345ca5766f9
diff --git a/libraries/nestjs-libraries/src/integrations/social/gmb.provider.ts b/libraries/nestjs-libraries/src/integrations/social/gmb.provider.ts
index 6f44d3f2c..0a8c4ebeb 100644
--- a/libraries/nestjs-libraries/src/integrations/social/gmb.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/gmb.provider.ts
@@ -508,8 +508,9 @@ export class GmbProvider extends SocialAbstract implements SocialProvider {
const postId = postData.name;
const locationId = id.split('/').pop();
- // GMB posts don't have direct URLs, but we can link to the business profile
- const releaseURL = `https://business.google.com/locations/${locationId}`;
+ const releaseURL =
+ postData.searchUrl ||
+ `https://business.google.com/locations/${locationId}`;
return [
{