,

Facepile Lives

·

Sol 5230

·

Rough, but any new ‘like’ webmention to my site will be given a ‘like’ custom comment type and displayed in a facepile. Still need to convert the existing ones.

See both previous (for now) and new likes on this post about Fr. Bill.

Fediverse reactions

Comments

  1. Ryan Barrett

    facepiles! awesome! oh man, jealous. next up, reposts, and emoji reactions like Facebook’s?

    can’t wait to see this kind of thing merged into Semantic Linkbacks (i assume?) and released! cc GWG.

    1. Brandon Kraft

      Yeah! Exactly. Going to look at building alongside the core Feature Plugin for emoji reactions so a webmention reaction adds to the count.

      Right now, I’m just playing to see how it feels and absolutely offer anything I get working upstream.

  2. Brandon Kraft

    Alright, I’ve converted over all existing webmention likes/reposts and added a facepile for reposts too. Two problems still outstanding: 1. Non-square avatars break the design and 2. How to handle 404ing avatars.

    1. Brandon Kraft

      Photon to the rescue for non-square avatars. Picking up on where semantic links left off:

      add_filter( 'pre_get_avatar_data', 'bk_photonize_comment_avatars', 12 );
      function bk_photonize_comment_avatars( $args ) {
      	if ( isset( $args['url'] ) && ! is_null( $args['url'] ) && function_exists( 'jetpack_photon_url') ) {
      		$size = apply_filters( 'genesis_comment_list_args', array( 'avatar_size' => 30 ) );
      		$size = $size['avatar_size'];
      		$args['url'] = jetpack_photon_url( $args['url'], array( 'resize' => array( $size, $size ) ) ) ;
      	}
      	return $args;
      }

Mentions

Likes

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.