From 235ce5716edc2f7cbe80fdccf26eac7269587839 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 08 Jun 2026 04:38:18 +0000
Subject: [PATCH] =FavouritesManager.php and FavouritesRoutes.php fixes. Moving all logic to FavouritesManager.php. Still some left to do

---
 inc/integrations/GoogleMyBusiness.php |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/inc/integrations/GoogleMyBusiness.php b/inc/integrations/GoogleMyBusiness.php
index c86d3ab..5893851 100644
--- a/inc/integrations/GoogleMyBusiness.php
+++ b/inc/integrations/GoogleMyBusiness.php
@@ -9,6 +9,11 @@
 
 class GoogleMyBusiness extends Integrations
 {
+	protected array $allowedContent = [
+		'menu_item',
+		'post',
+		'event',
+	];
 	private ?string $access_token = null;
 	protected string $readMask = 'name,title,storefrontAddress,metadata,openInfo,storeCode,categories,phoneNumbers,labels,specialHours';
 	private ?string $location = null;
@@ -319,8 +324,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-
-			$meta->save();
 		}
 
 		return [
@@ -374,7 +377,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-			$meta->save();
 		}
 
 		return [
@@ -426,7 +428,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-			$meta->save();
 		}
 
 		return [

--
Gitblit v1.10.0