58°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • aaronpk https://github.com/aaronpk   •   Jan 30

    #3 Indicating whether posts have already been responded to

    Aaron Parecki

    I'm thinking about using a new Microsub property in the entry to indicate the response URLs that may exist for this post.

    {
      "type": "entry",
      ...
      "_like": "https://aaronparecki.com/xxxxxxx",
      "_repost": "https://aaronparecki.com/yyyyyyyy"
    }
    

    alternately:

    {
      "type": "entry",
      ...
      "_actions": {
        "like": "https://aaronparecki.com/xxxxxxx",
        "repost": "https://aaronparecki.com/yyyyyyyy"
      }
    }
    

    For likes and reposts, from a UI perspective, we want to know whether the user has already liked or reposted a post (a boolean yes/no), in order to style the like/repost button differently, so in that case it makes sense to have those be a single string. (The client could send a Micropub delete request with the URL if the user taps the button again, to delete the like/repost.)

    For replies, I'm not sure what we actually want the client to indicate. Long-term it would be great if the client had the ability to show the full conversation thread, so in that sense it makes sense to handle replies differently from likes and reposts. Maybe we can handle this question separately for replies.

    In the case of likes and reposts, we only care about the URLs of the user's own like/repost posts. Showing other people who have liked or reposted a post is a different problem, since that does not affect the state of the action buttons.

    In thinking through this, I'm leaning towards the second JSON option above, nesting the data under _actions, since this data is limited in scope to help indicate the state of the action buttons. It is not meant to cover displaying all responses to a post.

    • 43°F
    Wed, Mar 14, 2018 8:13am -07:00 #microsub
Posted in /replies using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv