Some features are not available in China

Found a bug? Tell us!!
Post Reply
xinye
Posts: 1
Joined: Sat May 28, 2022 9:44 am

Some features are not available in China

Post by xinye »

Hello sir, I am from China, your blog system I like very much, but the theme function in the blog can not be used, China can not access the raw.githubusercontent.com normally, I hope to be able to solve.
erAck
Regular
Posts: 236
Joined: Mon Feb 16, 2015 1:20 am

Re: Some features are not available in China

Post by erAck »

A pity. That also means the update check won't function because it looks at https://raw.github.com/s9y/Serendipity/ ... cs/RELEASE and all Spartacus plugin fetching neither, unless a "Custom location for mirror" is set for the serendipity_event_spartacus plugin that the Chinese firewall allows to access (and needs to be fed of course). That custom mirror then could also be used to fetch themes. You can also switch off "Enable the use of Spartacus for fetching themes?" in the settings so only the pre-known list of themes is included.

For the update check you'd have to modify
./plugins/serendipity_event_dashboard/serendipity_event_dashboard.php line 390
$updateURL = 'https://raw.github.com/s9y/Serendipity/ ... cs/RELEASE';
and
./include/functions_installer.inc.php line 1242
$updateURL = 'https://raw.githubusercontent.com/s9y/S ... cs/RELEASE';

Good luck.
Post Reply