~x3b0b


#9 API for posting content 6 months ago

Comment by ~x3b0b on ~tsileo/microblog.pub

I thought microblog.pub already supported the ActivityPub client/server protocol better than most other server implementations. It works quite well in AndStatus.

#147 Suggestion/enhancement: alternate ID generation 1 year, 4 months ago

Ticket created by ~x3b0b on ~tsileo/microblog.pub

I wanted shorter permalinks for my instance, so I added configuration options for using a newBase60-encoded timestamp - and for using precision to the minute instead of the second, both because it's shorter and because it allows me to plan when to post something and predict my permalink, which can come in handy if I want to syndicate it and include a syndication link on the original, although I haven't done that so far.

I'm not sure whether there would be any demand for that, but I thought I'd ask whether you'd like it contributed upstream.

#146 Suggestion: when viewing the permalink for a mid-thread note, render previous notes as `u-in-reply-to` instead of `u-comment` 1 year, 4 months ago

Ticket created by ~x3b0b on ~tsileo/microblog.pub

I think this is a more appropriate representation of the nature of the surrounding context, but that's definitely an opinion and could be wrong. If you agree and you'd like me to do so, I could figure out how git-send-email works and send a patch. (the three issues I submitted before this one are such small changes that I questioned whether it would be simpler just to recreate the fix, but I wouldn't mind sending those too.)

#145 Suggestion: truncate title when used as link text 1 year, 4 months ago

Ticket created by ~x3b0b on ~tsileo/microblog.pub

In the display_og_meta macro in app/templates/utils.html, the og_meta.title gets used as anchor text. Because Tantek Çelik often uses the entire text of his notes as the title, I noticed there was no length restriction on this, which can get quite messy. My personal solution was to replace og_meta.title with og_meta.title | truncate(200).

#144 Some actors have multiple urls 1 year, 4 months ago

Ticket created by ~x3b0b on ~tsileo/microblog.pub

If I remember correctly, this was specifically the case for some users of Bridgy Fed, and the result of this was that trying to look up an actor with an array of urls would cause a 500 error because the url property might or might not return an array. My local fix was just to take the first one in such a case - changing self.ap_actor.get("url") to ap.as_list(self.ap_actor.get("url"))[0]. And then I forgot I'd meant to report the issue and offer my fix back upstream.

#143 EXTRA_NAVBAR_ITEMS are missing the containing li element in header.html 1 year, 4 months ago

Ticket created by ~x3b0b on ~tsileo/microblog.pub

#135 Replace Supervisord with Direct Systemd Unit 1 year, 5 months ago

Comment by ~x3b0b on ~tsileo/microblog.pub

I'm pretty sure those invoke the tasks defined in tasks.py (and implemented in the corresponding files in app/) that do the actual inbound and outbound federation of activities.

#100 500 error when trying to reply to someone whose instance won't let you look them up 1 year, 10 months ago

Comment by ~x3b0b on ~tsileo/microblog.pub

I almost replied without double-checking, because you did it almost exactly the same way I tried. (logging whose lookup failed is an improvement over my quick fix.) But yes, verified this prevents the error. Thanks!

#99 Article list is marked up as h-feed with no h-entries 1 year, 10 months ago

Comment by ~x3b0b on ~tsileo/microblog.pub

I think you're correct that it is not technically needed; the h-feed documentation says to do that to aid in discovering the "feed or feeds" if your home page doesn't contain your primary feed, and the "feed autodiscovery" section had given me the impression that if the home page contained a feed but there were also links on the homepage that went to other feeds, they should be marked that way. On further inspection and reading, I think:

  1. I may just be straight-up doing it wrong. I think, to the extent it's supposed to be correct, it may be supposed to be for a link in the head, not for an a, for one thing, and what I'd done was mark up the anchors in the header, not the links in the head.
  2. I'm pretty sure the only use-case in which what I thought I was doing would matter would be someone using a reader or browser that actually detected, from looking at the home page, that there were multiple h-feeds available...and in that case I think I should be marking up leads to tags the same way.

I'm probably going to back that part of my changes out for now and ask around.

#49 Feat: allow like/reply/share content from non-fedi sources 1 year, 10 months ago

on ~tsileo/microblog.pub

Heya, Sorry for the late reply, I've been travelling. I think option number two makes sense. It might also make it easy to allow subscription to h-feed and rss content in the future?

regards, Ash

On Sun, Jan 1, 2023 at 8:39 AM ~x3b0b outgoing@sr.ht wrote:

For what it's worth: Since all the appropriate microformats markup for IndieWeb replies/likes/favorites/reposts go inside the h-entry, I had previously concluded that this should be possible already - it just isn't convenient, because without any special UI for it, you have to write the HTML yourself. And, as you alluded to, it currently appears as an AP note (or article, presumably) with a link in it. Which, of course, is an entirely reasonable thing to post, but doesn't convey the same meaning.

I had already been meaning to test that conclusion, so I did: https://bw3.dev/o/7e024e0ff6f34dee8c93e976887b899c

If you go to the target article (and enable javascript), you can see that it correctly picked my mention up as a like.

That said, I'm all for lowering the barrier of "you can do it, but you have to write your own markup" if you are happy with your idea for how.

As for the visibility option, I can definitely see how this and other purposes might make it nice to be able to say "don't send this to my followers" without also having to say "don't let anyone I didn't mention see it." I had to look at some posts and how-tos to try to be sure I was remembering this correctly, but while favorites/likes/reactions in the Fediverse are public information, in that you can look and see who has liked a post; but unlike boosts/reposts/replies, they don't turn up in your followers' timelines. So on top of AP not supporting such actions on non-AP objects, what I described above is inherently more visible to your followers than the equivalent AP action.

After doing some more tests, I've now thoroughly confused myself as to whether or not I think it potentially makes sense to want to skip sending a post to the AP stream without also making it unlisted, partly because my thoughts on that bleed over into two completely separate (but slightly related) enhancements I've been thinking about trying to implement myself.

-- View on the web: https://todo.sr.ht/~tsileo/microblog.pub/49#event-219475

-- regards, Ashton McAllan http://acegiak.net