refactor: remove FEATURE flags for doctor ratings and sharing in components
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user