Facepile Lives

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.

Comments

5 responses to “Facepile Lives

  1. Ryan Barrett Avatar

    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 Avatar

      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 Avatar

    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 Avatar

      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;
      }

Leave a Reply