fix: 카카오 공유하기 수정
This commit is contained in:
parent
a727d4f1ac
commit
009bdbfe73
@ -207,7 +207,9 @@ def _build_share_html(
|
||||
<script>
|
||||
(function () {{
|
||||
var ua = navigator.userAgent || "";
|
||||
if (/bot|crawl|spider|slurp|facebookexternalhit|Facebot|Twitterbot|LinkedInBot|Pinterest|Slackbot|Telegram|WhatsApp|Discord|Kakao|kakaotalk|Embedly|redditbot|Applebot/i.test(ua)) {{
|
||||
// 앱 이름만으로 판별하면 인앱 브라우저(예: KAKAOTALK)까지 크롤러로 잡혀
|
||||
// 사용자가 중간 페이지에 멈춘다. 봇 전용 토큰만 쓴다.
|
||||
if (/bot|crawl|spider|slurp|facebookexternalhit|Facebot|Twitterbot|LinkedInBot|Pinterestbot|Slackbot|TelegramBot|WhatsApp|Discordbot|kakaotalk-scrap|Embedly|redditbot|Applebot/i.test(ua)) {{
|
||||
return;
|
||||
}}
|
||||
window.location.replace(document.getElementById("continue-link").href);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user