53°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Christopher Lemmer Webber https://octodon.social/@cwebber   •   Jul 13

    activitypub for static site generators Show more @craigmaloney Aha, so this is an interesting topic! In fact we did plan for this possibility in ActivityPub! Here's how to do it: - Add an actor like: {"@id": "https://foo.example/blog/actor.jsonld", "inbox": "https://statichelper.example/foo-example/inbox", "outbox": "https://foo.example/blog/feed.jsonld"} - comments and favorite counts can be "loaded" dynamically onto blog pages with javascript, kind of like Disqus.

    Aaron Parecki
    I tried doing something similar, but at least Mastodon expects to be able to do content negotiation on both author profile URLs as well as post permalinks, so that kind of prevents it from being able to effectively work with static sites.

    I got to the point of being able to deliver posts to my followers without actually writing any JSON files at all, but then things kind of looked half broken to people in Mastodon.

    There's an open issue on GitHub about a potential solution that would make this work better for static sites, feel free to chime in! https://github.com/w3c/activitypub/issues/310
    Portland, Oregon, USA • 67°F
    Fri, Jul 13, 2018 8:44am -07:00
    7 likes 4 reposts 3 replies
    • Matthias Pfefferle
    • amphetamine tokyo
    • ˗ˏˋ wakest ˎˊ˗
    • 🇪🇺 David Ross 🇬🇧
    • infinite love Ⴟ
    • Christopher Lemmer Webber
    • Matthias Pfefferle
    • ˗ˏˋ wakest ˎˊ˗
    • infinite love Ⴟ
    • Christopher Lemmer Webber
    • Eugen mastodon.social/@Gargron

      @aaronpk In so far as putting the post's link into the Mastodon search bar to get it loaded, I know it definitely works with HTML links. I also think it does that when resolving inReplyTo threads.

      Fri, Jul 13, 2018 5:12pm +00:00
    • Eugen mastodon.social/@Gargron

      @aaronpk id property has to be either content-negotiable or always json. url property can be html. you may use <link> tags in html to point to json resources, also.

      Fri, Jul 13, 2018 5:01pm +00:00
    • Eugen mastodon.social/@Gargron

      @aaronpk id property has to be either content-negotiable or always json. url property can be html. you may use <link> tags in html to point to json resources, also.

      Fri, Jul 13, 2018 5:01pm +00:00
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