From 8a46b8545f6b24b4dbd2990c4181a60640a9f701 Mon Sep 17 00:00:00 2001 From: aierlma <55280375+aierlma@users.noreply.github.com> Date: Thu, 22 Jul 2021 14:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gravatar=E9=95=9C=E5=83=8F=20?= =?UTF-8?q?(#272)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 7ca30e52..2c7135cd 100644 --- a/functions.php +++ b/functions.php @@ -204,7 +204,7 @@ function sakura_scripts() // } //拦截移动端 version_compare($GLOBALS['wp_version'], '5.1', '>=') ? $reply_link_version = 'new' : $reply_link_version = 'old'; - $gravatar_url = akina_option('gravatar_proxy') ?: 'secure.gravatar.com/avatar'; + $gravatar_url = akina_option('gravatar_proxy') ?: 'dn-qiniu-avatar.qbox.me/avatar'; wp_localize_script('app', 'Poi', array( 'pjax' => akina_option('poi_pjax'), 'movies' => $movies, @@ -611,7 +611,7 @@ function get_link_items() */ function gravatar_cn($url) { - $gravatar_url = array('0.gravatar.com/avatar','1.gravatar.com/avatar','2.gravatar.com/avatar','secure.gravatar.com/avatar'); + $gravatar_url = array('dn-qiniu-avatar.qbox.me/avatar','cdn.v2ex.com/gravatar','gravatar.loli.net/avatar','gravatar.zeruns.tech/avatar'); //return str_replace($gravatar_url, 'cn.gravatar.com', $url); //官方服务器近期大陆访问 429,建议使用镜像 return str_replace( $gravatar_url, akina_option('gravatar_proxy'), $url );