Fixing my ActivityPub and WebMention comments to make them play nicely. 0 ▲ The Fantastic Site of Lord Matt 174 days ago · Tech · hide · Fediverse post I was struggling to get both comments and replies to post while only showing “facepile” for likes and boosts. I had no one to blame but myself as I coded the theme from scratch. I’m posting this so the next time I have this problem (there is always a next time), future me can look up the answer. This time, present and ast me had no answer or even much of a clue. After giving up and asking ChatGPT WTF things were not doing what I wanted (show replies and mentions at the same time), I found a workaround, which left my comment count off. My fix to show all comment types (but not likes and boosts) was an array constant in functions.php (theme). define('LORDMATT_COMMENT_TYPES_NO', array( 'like', 'repost', 'boost', )); This defines a list of comment types that don’t need to be shown. Defining this way only works in PHP 7+, so use it with care. Then I did this in comments.php (theme) to reach the “it works, nobody touch anything” state. $comments = array_filter( $comments, function( $comment… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town