Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better fallback cases for the 'via' twitter handle in largo_post_social_links #1107

Merged
merged 4 commits into from
Jan 28, 2016

Conversation

benlk
Copy link
Collaborator

@benlk benlk commented Jan 28, 2016

Changes

The Twitter 'via' attribute output is set in the following order

  • The single coauthor's twitter handle, if it is set
  • The site's twitter handle, if there are multiple coauthors and a site twitter handle
  • The single user's twitter handle, if it is set
  • The site's twitter handle, if it is set and if there is a custom byline
  • The site's twitter handle, if it is set
  • No 'via' attribute if no twitter handles are set or if there are multiple coauthors but no site twitter handle

Why

For #1088 and WE-81.

@benlk
Copy link
Collaborator Author

benlk commented Jan 28, 2016

This was tested against Coauthors on WeNews and non-coauthors on Eye on Ohio.

Multiple coauthors and no site Twitter handle falls back to no via attribute.

aschweigert added a commit that referenced this pull request Jan 28, 2016
Better fallback cases for the 'via' twitter handle in largo_post_social_links
@aschweigert aschweigert merged commit 73af374 into master Jan 28, 2016
@aschweigert aschweigert deleted the 1088-twitter-share-via branch January 28, 2016 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants