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

Saved Links: alternatives to open graph for link description #79

Open
aschweigert opened this issue Aug 13, 2015 · 7 comments
Open

Saved Links: alternatives to open graph for link description #79

aschweigert opened this issue Aug 13, 2015 · 7 comments

Comments

@aschweigert
Copy link
Contributor

Apparently the bookmarklet used to let a user select a quote from a story and then use the selected text as the link description. This no longer works because (as far as I can tell) we're now only looking at the open graph description.

We should also probably consider falling back to the meta description tag if the open graph tag is not present.

So, in order or priority:

  1. Use selected text as the link description
  2. If no text is selected, try open graph, if we find it, use that
  3. if we don't find an open graph tag, look for a meta description tag
  4. if found, use that
  5. if none of those ¯_(ツ)_/¯
@0aveRyan
Copy link

Is the $selection = ' '; supposed to lack a self:? All the other attributes have it:
https://github.com/INN/link-roundups/blob/master/inc/lroundups/browser-bookmark.php#L165-L177

@aschweigert
Copy link
Contributor Author

hm...i'm guessing that might be the issue, did you try adding it to see if that makes it work?

@0aveRyan
Copy link

gonna give it a shot now. it might be different because that $selection isn't coming via the scraper? haven't looked close enough yet. and still haven't found where the selected value is being passed.

@0aveRyan
Copy link

😬 causes a fatal error so that's not it...

@aschweigert
Copy link
Contributor Author

it was a good guess

@rnagle
Copy link
Contributor

rnagle commented Aug 19, 2015

@dryanmedia if you used self: instead of self:: that would cause a fatal error.

You'll also need to update any lines referencing $selection to use self::$selection instead.

@0aveRyan
Copy link

Yep still causes fatal error.

Here's the old argo-links code where the selection was passed. there was some kind of vimeo embed thing too.
https://github.com/argoproject/argo-links/blob/master/argo-this.php#L378

Then this is where that was set as selection or something else. We're missing something that does this.
https://github.com/argoproject/argo-links/blob/master/argo-this.php#L579-L590

@aschweigert aschweigert added this to the 0.3.3 milestone Aug 27, 2015
@benlk benlk removed this from the 0.4.3 milestone Mar 5, 2019
@benlk benlk changed the title alternatives to open graph for link description Saved Links: alternatives to open graph for link description May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants