GithubHelp home page GithubHelp logo

handle quote tweets about granary HOT 3 CLOSED

snarfed avatar snarfed commented on August 25, 2024
handle quote tweets

from granary.

Comments (3)

snarfed avatar snarfed commented on August 25, 2024

woo, this should actually be pretty easy. evidently the whole quoted tweet object is included in the quoted_status field.

twitter renders it in an h-cite/reply context style box below the actual tweet, and hides the quote tweet link if it's at the end of the tweet text. we could just do the same.

from granary.

kylewm avatar kylewm commented on August 25, 2024

This is done already isn't it? e.g.,

<!DOCTYPE html>
<html>
<head><meta charset="utf-8"></head>
<body>
<article class="h-entry h-as-note">
  <span class="p-uid">tag:twitter.com:688090950829215744</span>
  <time class="dt-published" datetime="2016-01-15T20:10:41+00:00">2016-01-15T20:10:41+00:00</time>
  <span class="p-author h-card">
    <a class="p-name u-url" href="https://twitter.com/Eldritchreality">A powerful cabbit</a>
    <img class="u-photo" src="https://twitter.com/Eldritchreality/profile_image?size=original" alt="" />
  </span>
  <a class="u-url" href="https://twitter.com/Eldritchreality/status/688090950829215744">https://twitter.com/Eldritchreality/status/688090950829215744</a>
  <div class="e-content p-name">  
  YOU LITERALLY ARE A MARKOV CHAIN, WTF?<br />
<a href="https://twitter.com/eldritch_ebooks/status/688073162672713728">twitter.com/eldritch_ebook…</a>
<p>
<a class="link" href="https://twitter.com/eldritch_ebooks/status/688073162672713728">
</a>
</p>
  </div>

<article class="h-cite h-as-note">
  <span class="p-uid">tag:twitter.com:688073162672713728</span>
  <time class="dt-published" datetime="2016-01-15T19:00:00+00:00">2016-01-15T19:00:00+00:00</time>
  <span class="p-author h-card">
    <a class="p-name u-url" href="https://twitter.com/eldritch_ebooks">eldritch_ebooks</a>
    <img class="u-photo" src="https://twitter.com/eldritch_ebooks/profile_image?size=original" alt="" />
  </span>
  <a class="u-url" href="https://twitter.com/eldritch_ebooks/status/688073162672713728">https://twitter.com/eldritch_ebooks/status/688073162672713728</a>
  <div class="e-content p-name">
  I just discovered that Markov chains were just a random walk with delusions of grandeur.
  </div>
</article>
</article>
</body>
</html>

from granary.

snarfed avatar snarfed commented on August 25, 2024

awesome, yes! then we just need to do atom and we can close this.

from granary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.