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

Use proxy for fetching link meta #716

Merged
merged 5 commits into from
May 31, 2023
Merged

Use proxy for fetching link meta #716

merged 5 commits into from
May 31, 2023

Conversation

renahlee
Copy link
Contributor

Overview

This PR:

  • Fixes link embeds (thank you @Jacob2161 for making this possible ❤️ )
  • Removes the package he, which is no longer used

Looks like:

Screenshot 2023-05-17 at 11 33 14 AM

Known issues:

Twitter links are currently failing. There may be other instances as well, so in those cases, we forward the error from the proxy to the composer:

Screenshot 2023-05-17 at 11 33 03 AM

@renahlee renahlee requested review from pfrazee, ansh and Jacob2161 May 17, 2023 18:35
@Jacob2161
Copy link
Contributor

Yeah, there will be some availability/anti-bot issues to deal with. We're just extracting the metadata that they publish explicitly for the purpose of card-like summaries but 🤷‍♂️

@ummjackson
Copy link

@Jacob2161 If you set the User-Agent header to Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) if the URL hitting your proxy contains the hostname twitter.com, the error above will go away. 😄

Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thank god I can finally merge this

@pfrazee pfrazee merged commit c0ca27b into main May 31, 2023
@pfrazee pfrazee deleted the ollie/APP-45 branch May 31, 2023 01:08
alimony added a commit to alimony/social-app that referenced this pull request May 31, 2023
* main: (31 commits)
  fix: make DesktopLeftNav not overflow screen (bluesky-social#762)
  Fix deeplink when app is suspended (bluesky-social#812)
  Tune sizing of appearance control
  Remove lodash.clonedeep in package.json (bluesky-social#652)
  perf: enable lazy loading for tab navigation (bluesky-social#711)
  Make terms and notices dates less ambiguous. (bluesky-social#713)
  Use proxy for fetching link meta (bluesky-social#716)
  feat(Login): allow submitting on password field (bluesky-social#720)
  show package.json version on web (bluesky-social#717)
  Add ability to reply, repost (without quote post), and like posts using VoiceOver (bluesky-social#765)
  Move MAX_GRAPHEME_LENGTH to constants.ts (bluesky-social#735)
  fix: content trimmed in server input modal (bluesky-social#733)
  [typo] correct typo was 'fo' instead of 'to' (bluesky-social#721)
  Rework scaled dimensions and compression (bluesky-social#737)
  Use non-pipe translation link (bluesky-social#740)
  add instructions to removing sentry in build.md (bluesky-social#749)
  Update HomeIconSolid: widen the front door (bluesky-social#756)
  Support arrow key navigation for Lightbox.web.tsx (bluesky-social#761)
  Fix profile load issue + enhancement of profile isCurrent style (bluesky-social#764)
  Update ProfileHeader.tsx (bluesky-social#810)
  ...
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.

5 participants