So, it gets the WordPress excerpt but then cuts it off at (only) 125 characters.
What you can do is create an “mu-plugin” with the following code in it:
<?php
// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_filter( 'share_on_pixelfed_excerpt_length', function () {
return 400; // Or whatever number works for you.
} );
Or instead of an mu-plugin, you could also add it to your theme’s functions.php as long as you ensure it won’t get overwritten by subsequent theme updates, or you could add it through some plugin of sorts.
Not sure what max length Pixelfed instances typically allow, plus if you’re also going to include tags, etc., you may want to stay a little bit below the 500 or whatever characters is the real maximum.
You could also make that code a bit smarter, as long as it returns an appropriate number.
-
This reply was modified 2 years, 4 months ago by
Jan Boddez.