Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Ich brauche mal #followerpower für eine #wordpress Herausforderung mit dem ActivityPub Plugin.

Uncategorized
2 2 0

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    5 Posts
    16 Views
    @bombelli figurati, grazie!
  • 0 Votes
    1 Posts
    11 Views
    I could use some #FediHelp with some website traffic weirdness I have encountered.I use a #WordPress blog with the #ActivityPub plugin. This means that I get #Fediverse -based requests that look like this in the #Apache logs:"POST /wp-json/activitypub/1.0/actors/1/inbox HTTP/1.1"So far, so unspectacular. In the latest logs - spanning from 20/Nov/2025:01:49:32 to 21/Nov/2025:05:49:47 - I've had 2046 such requests. Most of these are one-time affairs.However, 1099 of these requests are from mastodon.sdf.org , which is very suspicious. They are very evenly spread, too - a new request comes every minute or two.This instance is on #Mastodon 4.1.25. Does this version have a known bug where it sends the same request over and over again?@SDF
  • 0 Votes
    6 Posts
    17 Views
    @davew sure! but I at least got one example!https://mastodon.social/@onli@social.anoxinon.de/115221099650912787
  • 0 Votes
    1 Posts
    3 Views
    Note: this option is no longer available in the Jetpack plugin. If your site is hosted on WordPress.com, however, you will continue to have the option to display snow on your site during the holiday season.It’s that time of the year again. Starting today and until January 4th, the Jetpack plugin will add an option at the bottom of the General settings screen in your dashboard. Turn that option on, and snow will fall on your blog ? !Of course, like with all Jetpack features, we’ve added some filters allowing you to extend or customize it. Here is all you need to know about Holiday Snow in Jetpack.I don’t want snow on my Jetpack siteNo worries! The option is off by default. It will only be enabled if you go to Settings > General in your dashboard, and check the box. If you checked it last year, Jetpack will remember your choice and enable it again this year.Note: that checkbox only appears between December 1st and January 4th, when the feature is actually available and visible on your site. However, if you’d like to check the status of the Snow option on your site at any time during the year, you can access the setting under Jetpack > Settings.I don’t want to see that option on my siteIf you don’t even want to see the option, you can add the following code to a functionality plugin:/** * Remove the Snow option from your dashboard. * * That option appears in Settings > General between December 1st and January 4th. * It is off by default. * This filter removes it completely. */add_filter( 'jetpack_is_holiday_snow_season', '__return_false' );Why January 4th? I want snow to fall on my blog until April 1st!That’s not a bad idea. You can use the jetpack_is_holiday_snow_season filter to do just that:/** * Show the Snow option until April 1st * * By default, the option disappears on January 4th * * @return bool true|false Is it holiday season? */function jeherve_snow_fools() {$today = time();// First snow day. December 1st here.$first_snow_day = mktime( 0, 0, 0, 12, 1 );// Last Snow day. April 1st in our example.$last_snow_day = mktime( 0, 0, 0, 4, 1 );// $snow will return false if we're outside holiday season.$snow = ( $today >= $first_snow_day || $today < $last_snow_day );return $snow;}add_filter( 'jetpack_is_holiday_snow_season', 'jeherve_snow_fools' );Your snowflakes are way too small. I have my own snow, can I use it instead of yours?Sure thing. You’ll want to use the jetpack_holiday_snow_js_url filter, like so:/** * Enqueue our own snow Javascript file. * * @return string Snow js file. */function jeherve_custom_snow() {// Your custom Snow JS file$snowstorm_url = plugins_url( 'my_own_snow.js', __FILE__ );return $snowstorm_url;}add_filter( 'jetpack_holiday_snow_js_url', 'jeherve_custom_snow' );I’d like my readers to be able to turn snow on and off as they pleaseThere is a plugin for that! Jetpack Holiday Snow Opt-In only shows snow if your reader has opted in by clicking on a snowflake appearing in the top right corner of your site. Hopefully this will make it to Jetpack itself at some point.I don’t want to see any snow, anywhereYou can use this Chrome Extension to hide snow from all Jetpack and WordPress.com sites.Why would someone want to disable snow on their site? It looks great!While it does look nice, animations like falling snow may cause discomfort, headaches, and sometimes even seizures to some people. Consider this before to turn on the Snow option on your site.Any other questions? Let me know!