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

Add helpers for facebook & twitter urls #6847

Closed
wants to merge 2 commits into from

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented May 17, 2016

Note: this PR assumes that we are now saving usernames only in the database for twitter & facebook

Changing to have usernames only in twitter & Facebook settings/columns currently breaks the frontend as the structured data gets confused.

refs #6534

  • this PR assumes that we are now saving usernames only in the database for twitter & facebook
  • adds a new social links utility which can generate twitter & facebook urls from the username
  • adds a {{twitter_url}} and {{facebook_url}} helper which uses these
  • adds a full suite of tests for the helpers & utils

refs TryGhost#6534

- this PR assumes that we are now saving usernames only in the database for twitter & facebook
- adds a new social links utility which can generate twitter & facebook urls from the username
- adds a {{twitter_url}} and {{facebook_url}} helper which uses these
- adds a full suite of tests for the helpers & utils
refs TryGhost#6534

- twitter & facebook fields are changing to store usernames only
- use the new social url util to generate urls where necessary
- update tests
@ErisDS
Copy link
Member Author

ErisDS commented May 17, 2016

Closing in favour of #6848

@ErisDS ErisDS closed this May 17, 2016
@ErisDS ErisDS deleted the social-url-helpers branch May 22, 2016 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant