vivelohoy / vivelohoy-3.0

The next generation site for Hoy Chicago.
http://www.vivelohoy.com/
5 stars 4 forks source link

Author of articles shared on Twitter are sometimes mis-attributed #188

Open nrrb opened 9 years ago

nrrb commented 9 years ago

Sometimes authors of articles that are shared on Twitter are then mis-attributed in the summary view. For example, the article http://www.vivelohoy.com/deportes/8374260/ronda-rousey-%E2%80%98podria-derrotar-a-cain-velazquez%E2%80%99 was shared by a user @jhall282 and @vivelohoy was listed as the author:

image

However, the article was actually written by Alejandro Yanún:

image

Running this article's URL through the Twitter Card Validator we get the same mis-attribution of author, to @vivelohoy instead of Alejandro:

image

One problem with Alejandro's author profile on the site is that he doesn't have a Twitter URL set:

image

However, in another case of a guest writer, Gabriel Muhr, he does have a Twitter URL set in his profile but still his articles are attributed to @vivelohoy.

His user profile appears as follows:

image

He wrote the article http://www.vivelohoy.com/deportes/8424465/el-boxeo-esta-agradecido:

image

When we run this through the Twitter Card Validator we get the attribution to @vivelohoy instead:

image

nrrb commented 9 years ago

In 12c49f26 we hid several contact info fields from the user profile:

  unset($contactmethods['aim']);
  unset($contactmethods['jabber']);
  unset($contactmethods['yim']);
  unset($contactmethods['twitter']);
  unset($contactmethods['googleplus']);
  unset($contactmethods['facebook']);

If I remove this code to show these fields again and then view Gabriel Muhr's profile again, we can see that the hidden Twitter field shows nothing and the new Twitter field shows the URL:

image

Looking at the article http://www.vivelohoy.com/deportes/8424465/el-boxeo-esta-agradecido by Gabriel Muhr, we can see in the source code that the following meta tags are set:

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:description" content="El mundo del deporte necesita de &#039;Extraterrestres&#039; como el púgil Bernard Hopkins para seguir brillando"/>
<meta name="twitter:title" content="El boxeo está agradecido - Vivelohoy"/>
<meta name="twitter:site" content="@vivelohoy"/>
<meta name="twitter:domain" content="Vivelohoy"/>
<meta name="twitter:creator" content="@vivelohoy"/>
<meta name="twitter:image:src" content="http://www.vivelohoy.com/wp-content/uploads/2014/11/OpinionBOX.jpg"/>

Compare this to the article http://www.vivelohoy.com/deportes/8424819/mexico-congela-su-buena-racha-con-derrota-en-bielorrusia by Octavio that is correctly attributed to Octavio in the Twitter card:

image

The meta tags in the source code of this article show correct attribution of the author to Octavio's Twitter account:

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:description" content="México, con un plantel casi completamente renovado con respecto al de la victoria del miércoles en Holanda, perdió este martes en Borisov en un amistoso ante Bielorrusia (3-2), pese a dos goles de Raúl Jiménez."/>
<meta name="twitter:title" content="México congela su buena racha con derrota en Bielorrusia - Vivelohoy"/>
<meta name="twitter:site" content="@vivelohoy"/>
<meta name="twitter:domain" content="Vivelohoy"/>
<meta name="twitter:creator" content="@OctavioGLopez"/>
<meta name="twitter:image:src" content="http://www.vivelohoy.com/wp-content/uploads/2014/11/2014-11-18T184058Z_1200804397_GM1EABJ07BI01_RTRMADP_3_SOCCER-FRIENDLY.jpg"/>

Looking at Octavio's account profile we see that his Twitter username is set properly:

image