Compare commits

..

18 commits

Author SHA1 Message Date
Hypolite Petovan 5478552040 [nitter] Drop support for the addon
- Please use the URL replace addon instead
2024-03-19 12:56:08 -04:00
Hypolite Petovan a601a6b4a2 [invidious] Drop support for the addon
- Please use the URL replace addon instead
2024-03-19 12:56:08 -04:00
Hypolite Petovan c491c04111 [url_replace] Simplify config setting conditions
- Add default values for config values in url_replace_addon_admin()
- Capitalize brand names
2024-03-19 12:56:08 -04:00
Dr. Tobias Quathamer 482388c420 Use invidio.us as default 2024-03-18 11:11:24 +01:00
Dr. Tobias Quathamer 4842258a1f Only show small info about replacements if the original has changed 2024-03-18 11:05:09 +01:00
Dr. Tobias Quathamer 23ef3ac580 Reformat code to apply standards 2024-03-16 20:26:38 +01:00
Dr. Tobias Quathamer d45e94c2bc Remove configuration value if no server URL is provided 2024-03-16 11:33:48 +01:00
Dr. Tobias Quathamer 4f391f51cd Fix formatting 2024-03-14 09:31:58 +01:00
Dr. Tobias Quathamer 984e112961 Update message catalog 2024-03-14 09:05:34 +01:00
Dr. Tobias Quathamer 5c1f706277 Use constants for the default servers 2024-03-14 09:03:12 +01:00
Dr. Tobias Quathamer d3ba63c559 Increment version 2024-03-13 22:57:16 +01:00
Dr. Tobias Quathamer 6d941dd0a8 Update message catalog 2024-03-13 22:56:58 +01:00
Dr. Tobias Quathamer a2b3691916 Remove now unnecessary variable 2024-03-13 22:56:06 +01:00
Dr. Tobias Quathamer 499167ec50 Reformat code, no content changes 2024-03-13 22:56:06 +01:00
Dr. Tobias Quathamer 4a98e20fb7 Enable individual replacement preferences 2024-03-13 22:41:15 +01:00
Dr. Tobias Quathamer 1a9dc5b2ad Update README 2024-03-13 17:09:19 +01:00
Dr. Tobias Quathamer ebfaeab289 Add proxigram for instagram redirection.
Based on an idea and patch from loma-one. Thanks!
2024-03-13 17:07:10 +01:00
Dr. Tobias Quathamer 94c59c4c4c Simplify providing a default empty array 2024-03-13 15:39:21 +01:00
4 changed files with 12 additions and 19 deletions

View file

@ -45,7 +45,7 @@ pipeline:
branch: [ develop, '*-rc' ]
event: push
composer_install:
image: friendicaci/php8.2:php8.2.16
image: friendicaci/php7.4:php7.4.33
commands:
- export COMPOSER_HOME=.composer
- composer validate

View file

@ -5,11 +5,9 @@ matrix:
- PHP_MAJOR_VERSION: 8.0
PHP_VERSION: 8.0.30
- PHP_MAJOR_VERSION: 8.1
PHP_VERSION: 8.1.27
PHP_VERSION: 8.1.23
- PHP_MAJOR_VERSION: 8.2
PHP_VERSION: 8.2.16
- PHP_MAJOR_VERSION: 8.3
PHP_VERSION: 8.3.3
PHP_VERSION: 8.2.11
# This forces PHP Unit executions at the "opensocial" labeled location (because of much more power...)
labels:
@ -78,7 +76,7 @@ pipeline:
- cp config/local-sample.config.php config/local.config.php
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
- if [ "${PHP_MAJOR_VERSION}" = "8.2" -a "${CI_REPO}" = "friendica/friendica-addons" ]; then
- if [ "${PHP_MAJOR_VERSION}" = "7.4" -a "${CI_REPO}" = "friendica/friendica-addons" ]; then
phpenmod xdebug;
export XDEBUG_MODE=coverage;
phpunit --configuration tests/phpunit-addons.xml --coverage-clover clover.xml;
@ -89,8 +87,8 @@ pipeline:
image: friendicaci/codecov
when:
matrix:
PHP_MAJOR_VERSION: 8.2
PHP_VERSION: 8.2.16
PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.33
repo:
- friendica/friendica-addons
commands:

View file

@ -42,7 +42,7 @@ pipeline:
repo: friendica/friendica-addons
event: tag
composer_install:
image: friendicaci/php8.2:php8.2.16
image: friendicaci/php7.4:php7.4.33
commands:
- export COMPOSER_HOME=.composer
- composer validate

View file

@ -61,7 +61,7 @@ function blockbot_init_1()
'adscanner/', 'HeadlessChrome', 'wpif', 'startmebot/', 'Googlebot/', 'Applebot/',
'GoogleImageProxy', 'bingbot/', 'heritrix/', 'ldspider',
'AwarioRssBot/', 'TweetmemeBot/', 'dcrawl/', 'PhantomJS/', 'Googlebot-Image/',
'CrowdTanglebot/', 'Mediapartners-Google', 'Baiduspider', 'datagnionbot',
'CrowdTanglebot/', 'Mediapartners-Google', 'Baiduspider/', 'datagnionbot',
'MegaIndex.ru/', 'SMUrlExpander', 'Hatena-Favicon/', 'Wappalyzer', 'FlipboardProxy/',
'NetcraftSurveyAgent/', 'Dataprovider.com', 'SMTBot/', 'Nimbostratus-Bot/',
'DuckDuckGo-Favicons-Bot/', 'IndieWebCards/', 'proximic', 'netEstate NE Crawler',
@ -83,11 +83,7 @@ function blockbot_init_1()
'BitSightBot/', 'ev-crawler/', 'CensysInspect/1.1', 'Protopage/', 'Gaisbot/', 'WellKnownBot/',
'SuperBot/', 'Googlebot-Mobile/', 'GPTBot/', 'GenomeCrawlerd/', '2ip bot/', 'Ocarinabot',
'Yahoo! Slurp;', 'AdsBot-Google', 'Gregarius/', 'FAST-WebCrawler/', 'Xenu Link Sleuth/',
'Ask Jeeves', 'alexa site audit/', 'Yahoo! Slurp China;', 'Microsoft URL Control',
'Facebot', 'Googlebot-Video/', 'msnbot/', 'Offline Explorer/', 'YandexNews/', 'msnbot-media/',
'EmailWolf', 'Download Demon/', 'FeedFetcher-Google;', 'WebCopier', '+ONB_Bot_Btrix',
'scoopit-crawler/', 'ia_archiver', 'Quora-Bot/', 'WebwikiBot/', 'FullStoryBot/',
'wpbot/', 'SearchExpress', 'DuckDuckBot/', 'Google Web Preview',
'Ask Jeeves'
];
if (DI::config()->get('blockbot', 'block_gab')) {
@ -101,8 +97,7 @@ function blockbot_init_1()
'PTST/', 'Zabbix', 'Poduptime/', 'FediFetcher', 'lemmy-stats-crawler',
'FedditLemmyverseCrawler/', 'lemmy-explorer-crawler/', 'URIports Validator',
'rss-is-dead.lol web bot;', 'fedistatsCrawler/', 'W3C_CSS_Validator_JFouffa/',
'IABot/', 'Slackbot 1', 'BeeperBot/', 'Matrix-Media-Repo/', 'P3P Validator',
'KeybaseBot;',
'IABot/', 'Slackbot 1',
];
if (!DI::config()->get('blockbot', 'good_crawlers')) {
@ -115,7 +110,7 @@ function blockbot_init_1()
$socialmedia_agents = ['Twitterbot', 'facebookexternalhit/', 'SkypeUriPreview Preview/',
'TelegramBot', 'WhatsApp/', 'github-camo', 'Bluesky Cardyb/', 'XING-contenttabreceiver/',
'LinkedInBot/', 'Instagram ', 'Synapse (bot; ', 'Discordbot/', 'SummalyBot/',
'Slackbot-LinkExpanding', 'Slack-ImgProxy', 'Iframely/',
'Slackbot-LinkExpanding', 'Slack-ImgProxy',
];
if (!DI::config()->get('blockbot', 'socialmedia_agents')) {
@ -164,7 +159,7 @@ function blockbot_init_1()
'Slackbot-LinkExpanding', 'Firefish/', 'Takahe/', 'Akkoma ', 'Misskey/', 'Lynx/',
'camo-rs asset proxy', 'gotosocial/', 'incestoma ', 'SpaceCowboys Android RSS Reader',
'NewsBlur Feed Finder', 'Lemmy/', 'enby-town/', 'rss2tg bot;', '; HTTrack ',
'MbinBot', 'kbinBot', 'Pixelfed/', 'NewsBlur Feed Fetcher', 'NewsBlur Page Fetcher',
'MbinBot', 'kbinBot'
];
if (blockbot_match($agents)) {