refactor: remove FEATURE flags for doctor ratings and sharing in components

This commit is contained in:
hamed
2026-07-30 09:16:13 +03:30
parent e87a0bae9b
commit 8a24579a50
8 changed files with 19 additions and 33 deletions
+1 -4
View File
@@ -10,7 +10,6 @@ import { isNoindexDoctor } from "@/lib/entityQuality";
import specialtiesData from "@/data/specialties.json";
import { safeJsonLd } from "@/lib/sanitize";
import { imageUrl, doctorTitle } from "@/helper";
import { FEATURES } from "@/config/features";
const API_URL = process.env.NEXT_PUBLIC_API_URL;
const FALLBACK_IMG = "/assets/images/og-image.png";
@@ -190,9 +189,7 @@ async function Doctor({ params }) {
url: imageUrl(doctor.img[0].url),
},
}),
// امتیاز وقتی در صفحه پنهان است نباید در schema بیاید؛ گوگل داده ساخت‌یافتهٔ
// نامرئی را نقض راهنما می‌داند.
...(FEATURES.doctorRatings && !isUnclaimed && Number(doctor.point) > 0 && {
...(!isUnclaimed && Number(doctor.point) > 0 && {
aggregateRating: {
"@type": "AggregateRating",
ratingValue: doctor.point,