Replying to a Mastodon post from the blog
Fedi/Mastodon programmers... with the #MastodonAPI, and given a url to a post on any instance (assuming I have access to the toot from my account), how might I get my instance to fetch it and give me a "local" ID that is suitable for passing as the "inReplyToID" in a toot payload?
Wondering if I need to:
- perform a search (https://docs.joinmastodon.org/methods/search/)
- find the relevant status in the results
- use the ID for the status
Would that be the "local" ID?
#MastodonAPI #fediverse #programming #blogging #indieweb
Dammit I started a branch on Goldfrog to play with the #micropub api, and now that it's in pieces on the editor floor, I have 3 more features I want to add #indieweb #blogging
(One is adding the ability for a note or post here to be a reply to another post on Mastodon.)
There a LOT of error cases when writing a #webmention server implementation #indieweb #goldfrog
I know I've done a good job integrating my social media posting into my site when I want to reply to my own posts #indieweb #posse
Obviously I need to add media uploading to my syndication code #indieweb #goldfrog
http://monkinetic.blog/2020/02/22/txt-fd6090d
I added an edit button for Notes on this site and it's like #twitter only awesome #indieweb
First Goldfrog Webmention in Public
(SORRY, LOST IMAGE)
Evidence of the first Webmention GoldFrog has sent for a post on this site.
Horst just recently implemented Webmentions on his site, so I'm happy to be able to give him a link!
On sharing and owning your content https://zerokspot.com/weblog/2020/02/11/sharing-and-owning-content #indieweb #blogging
Jacky Alciné
Jacky Alciné is an active member of the #indieweb and #activitypub communities, and a web developer working out of Oakland.
Imma make this clear: I'm not building software for developers.
I'm working to building tools for people.
You shouldn't have to know to maintain and secure a server to have your own independent identity online. You shouldn't need to know what libsodium or similar library to be secure online.
That's my objective.
https://playvicious.social/@jalcine/101366378320531511
Yesterday I imported 7800+ tweets into Goldfrog, my blog/cms, as part of owning my own content. Tweets (or Notes) will be published on monkinetic.blog and be syndicated to Twitter. See my archive page (20 years worth), blue are posts and pink are notes
http://monkinetic.blog/archive
Goldfrog updates: syndication
If you follow me on social media - Twitter or Mastodon - you may have seen lots of nonsense posts go by recently...
(SORRY, LOST IMAGE)
I've been working on improving my POSSE features here, which meant not only composing my posts and notes locally, and then publishing them to Twitter et al, but also being able to track where they "landed" (ids and links) and make it easy for users to find my content on the syndicated site.
So I dug back into my syndication code, rewrote it several times, learned some things about goroutines, learned how not to do some things with goroutines, and settled on a way that worked. With luck, this post and any other that is also published on Twitter or Mastodon will have links to those sites along with the post, and (at least for Twitter right now) have links to reply, favorite, or retweet the post.
As Dave used to be fond of saying:
Still digging!
Manual Indie Comments
Chris Aldrich wrote a blog post about manually adding Webmentions for links to his posts from sites that are not themselves Webmention-enabled.
This reminded me that I'd like to add a "I linked to you" feature for the post detail page in #goldfrog for this site. (Goldfrog does support Webmentions, so Chris should get an automatic link from this post :))
Thank you #indieweb folks for https://webmention.rocks/
For my next #indieweb trick: I'm working on adding support for Webmention in #goldfrog.
https://github.com/sivy/goldfrog/issues/9
Client:
- Endpoint discovery (header, link, a)
- Send basic webmentions
- Send "special" webmentions (ie Likes)
Server:
- Provide discovery (header, link, a)
- Receive basic webmentions
- Receive "special" webmentions (ie Likes)
Ultimately I'd like to break out my webmention code into a releasable #golang module that can provide reusable http.Handler
functions that can be plugged into any Go mux that supports them.
ICYMI: working on #indieweb in goldfrog https://t.co/9DKVvHYwzP
Towards IndieWeb: POSSE and Notes
#posse #blogging #webmention #indieweb
https://t.co/15Q3wsMv9J
POSSE is the #IndieWeb acronym for Publish (on your) Own Site, Syndicate Everywhere. It's something I'm playing with in Goldfrog.
A common idiom is to differentiate Notes (small microblog-like posts) from Articles (longer blog posts with a title). Right now Goldfrog has a basic blog Post type, with (ID
, Title
, Slug
, Tags
, Body
). I'd like to keep the posting experience as simple as possible, so I'm thinking about how to handle something that literally just has a Body
(and Tags
, because I parse and attach any #hashtags - see? - in the content).
My Posts have an ID, though a uniqueness constraint on the slug means I could use that instead. But Notes don't have a title to "slugify" (it is too a word). Goldfrog also writes every post to the filesystem as a Jekyll-compatible markdown file, so I would need to figure out what format and filename/slug would be appropriate so that they get a permalink.
Url Options
- 2020/01/16/note-ab43f6 unique hash id
- 2020/01/16/note-13:25 HH:MM
Actual Progress
An upcoming build of Goldfrog will support new "kind" of Post, albeit only differentiated by the presence of a title. I've made a few UI and backend changes to support notes:
(SORRY, LOST IMAGE)
- Notes get a slug that is constructed from the string "txt-" + a shortened hash based on the note's content, like
txt-8213d2c
- Since notes are short enough to look weird on a typical post-detail page, I created a new "Daily Digest" page on the site that shows only the posts for a given day. This is the default target for the permalink for Notes. The slug is used as the
id
attribute on the note, so the link jumps directly to the note on the digest page. This results in a "permalink" like "YYYY-MM-DD/#txt-8213d2c"
- The Syndicate options (currently for Twitter and Mastodon) are now enabled by default for notes.
- Clicking the "post form" link takes me to a longer post form with options for a title, custom slug, tags, and a larger content area for writing.
Still to work out
- I'm thinking about implementing Webmentions for Goldfrog, since I control the code.
- I'm still pondering how to connect a post or note with it's syndicated version, to allow likes from this site to propagate to the syndicated site. That feels... harder than I want to dig into right now, but I'll be looking for ideas.
#indieweb folks: how do you post a tweet via the API with a link back to the original? As in, why didn't this link expand #posse https://t.co/hiXKxJkQUG