From 6607b39235b4164610974f3d18d19f5453f1e87b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 9 Mar 2023 12:28:40 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=83=AD=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=81=A7=E5=BA=83=E5=91=8A=E3=82=92=E7=84=A1=E5=8A=B9=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=A8admin/ads=E3=81=A7=E3=83=97=E3=83=AC?= =?UTF-8?q?=E3=83=93=E3=83=A5=E3=83=BC=E3=81=8C=E3=81=A7=E3=81=A6=E3=81=93?= =?UTF-8?q?=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10272 --- CHANGELOG.md | 2 +- packages/frontend/src/components/global/MkAd.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6cbcb9af6..e79bbbac36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ You should also include the user name that made the change. - enhance(client): フォロー申請のボタンのデザインを改善 ### Bugfixes -- +- ロールで広告を無効にするとadmin/adsでプレビューがでてこない問題を修正 ## 13.9.2 (2023/03/06) diff --git a/packages/frontend/src/components/global/MkAd.vue b/packages/frontend/src/components/global/MkAd.vue index 2bb432e15f..e0304c8bc5 100644 --- a/packages/frontend/src/components/global/MkAd.vue +++ b/packages/frontend/src/components/global/MkAd.vue @@ -82,7 +82,7 @@ const choseAd = (): Ad | null => { }; const chosen = ref(choseAd()); -const shouldHide = $ref($i && $i.policies.canHideAds); +const shouldHide = $ref($i && $i.policies.canHideAds && (props.specify == null)); function reduceFrequency(): void { if (chosen.value == null) return;