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

Embed link data in the post #93

Closed
annando opened this issue Jan 19, 2018 · 0 comments
Closed

Embed link data in the post #93

annando opened this issue Jan 19, 2018 · 0 comments

Comments

@annando
Copy link

annando commented Jan 19, 2018

See the discussion here: https://discourse.diasporafoundation.org/t/implementation-specific-fields/668/8 and here: https://discourse.diasporafoundation.org/t/enclose-the-oembed-data-in-the-status-message/1056/4

The idea behind is to control which link in a post is the most important, instead of choosing the first one to fetch OpenGraph/OEmbed data.

See the proposed structure:

<status_message>
  <author>alice@example.org</author>
  <guid>17418fb029e6013487743131731751e9</guid>
  <created_at>2016-07-11T22:38:19Z</created_at>
  <text>I've been totally shocked by the article that I just read!</text>
  <embed>
    <link>http://www.huffingtonpost.co.uk/2015/06/01/9-signs-cats-are-planning-world-domination_n_7482898.html</link>
    <title>Cats Are Conspiring To Take Over The World, And Here’s Proof</title>
    <description>It's fairly obvious to anyone who has been near a cat for a prolonged period of time that the little felines are clearly plotting to take over the world....</description>
    <image>http://i.huffpost.com/gen/3016630/images/o-CATS-PLOTTING-WORLD-DOMINATION-facebook.jpg</image>
  </embed>
  <public>true</public>
</status_message>

The "link" element is mandatory, the rest is optional. If all data is present, the system can rely on it and doesn't need to do a request on its own. Or it could do an OEmbed/OpenGraph request on the "link" anyway and could fall back to the provided data.

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

2 participants