Email or username:

Password:

Forgot your password?
572 posts total
Gregory

Is it mandatory in 2019 for every website with articles ever to have a newsletter?

Gregory

#Smithereen update. I've completely rewritten the way user avatars are stored, both remote and local. I now cache the ones for remote users, and store them in 4 sizes and in jpeg and webp. This was a lot of work, and I now need to do the same for post photos. As an added benefit, "icon" in AP is no longer an array – some software didn't like that.

As I found out yesterday, I've also forgotten that I need to send Delete activities when deleting posts. Now I do send them.

#ActivityPub #mastodev

Gregory

And also, what kind of activity am I supposed to look for to know when someone's avatar was updated?

Gregory

The 2019 internet is so fucking amazing I have no words

Gregory

Choosing the right language is apparently still a problem in 2019. My system language is English, but for some reason the captcha itself is in Russian. Because reasons.

Gregory

Задумался о том, что многие мои знакомые, включая айтишников, не понимают концепцию соцсетей с федерацией. Типичный разговор:— Нашёл работу?— Неа— А чем занимаешься?— Делаю децентрализованную соцсеть по типу ВК— Это как? На блокчейне?— Понимаешь как почта работает? Ну, что ты можешь из гугла отправить письмо в яндекс. Вот это то же самое, только протокол другой и вместо писем посты и лайки.

А вы как объясняете?

@rf

Show previous comments
Cybermax

@grishka @rf пытался объяснить принцип, что любой васян у себя может сервер поднять, но они между собой общаются, что есть альтернатива всем сервисам от ВК и инсты, до музыки и ютуба. Ноль реакции, никакого интереса. Не айтишникам, параноикам это не интересно. Пока Бузова или Ники Минаж не зарегается...

yvv

@grishka @rf Большинству хомяков на эту децентрализацию начхать. До тех пор, пока их не начинают банить в твитерах и пейсбуках. Тогда начинаются сопли и вой "как же так миня за шо???"

narva

@grishka @rf использую термин "почта на стероидах")

Gregory

Очень ироничная надпись в троллейбусе

Gregory

I've completed "Secure Container" - Day 4 - Advent of Code 2019 https://adventofcode.com/2019/day/4

Gregory

Added support for displaying images.

Now a question. I currently hotlink everything, including profile pictures. Downloading all media and keeping it eternally like Mastodon does seems to me like a terrible idea. But then hotlinking is also not ideal – Mastodon has images in different sizes internally while only serving the biggest ones through AP.

I'm thinking about something in-between. A LRU cache with admin-configurable size maybe?

#Smithereen #ActivityPub #mastodev

Gregory

And then I'd also like to serve images in WebP whenever possible (read: to browsers that aren't Safari) to reduce data usage, but again, hotlinking makes this impossible.

marius

@grishka why is hotlinking not ideal? That's how the web is suppsed to work, isn't it?

Gregory

So I just posted a reply to @Gargron's post from my #Smithereen instance. My first reply to someone else's post to contain an LD-signature.

Then interesting things started happening! First, I received an onslaught of incoming requests for... something. I don't log GET requests. I knew Jetty is multi-threaded, but I didn't know it's this multi-threaded. Second, someone with a broken SSL configuration tried to follow me.

I presume that's how you know you're now a proper part of the fediverse?

Eugen Rochko

@grishka Yes, when you publicly reply to a post, and it has an LD-signature, we forward that reply to the parent's followers, so that people who click on the post get a more complete conversation.

Gregory

After countless hours of debugging, #Smithereen now finally supports linked data signatures!

#ActivityPub #mastodev

Gregory

I'm surprised the macOS dictionary actually knows what RDF is!

Gregory

Done with the non-trivial parts... I HOPE

Gregory

I made my first unit tests today. I'll have to support the parts of JSON-LD spec I thought I didn't need because, well, I might end up needing them to verify LD-signatures.

#smithereen #activitypub #mastodev

Gregory

I did it!

The JSON-LD algorithm spec was clearly written with something dynamically typed like JavaScript in mind. Implementing that in Java is pain in the ass and takes extreme amounts of instanceof statements to get right.

But at least I now support those "reverse" properties no one's ever gonna use...

#smithereen

Gregory

Replying to something now adds a mention of both the author of the original post and of the reply you're replying to – so both those people get notifications. If you're replying to a reply, that second mention is actually visible.

(side note: there are two kinds of mentions in AP, the one you put into the "tag" field which triggers notifications on Mastodon, and the one you put into the post content as a link that users can click on.)

#Smithereen #mastodev #activitypub

Gregory

Seems like Mastodon only notifies you about a reply if the reply contains a mention. Addressing (to/cc) doesn't matter here AT ALL. So I guess I have to support mentions, no way around that ¯\_(ツ)_/¯

#smithereen #activitypub #mastodev

Gregory

Now, there's a good question whether the mention has to actually be there in the post content or putting one in "tags" is going to be enough.

Sushubh

@grishka I actually like this. I can leave a comment or a hashtag for later reference to sort of bookmark without pinging the people in thread.

Gregory

@judeswae this doesn't open for me for some reason, and the console shows a 403 while it's calling its API. Tried both with and without a VPN, from different browsers too. I surely can't be the only one?

Gregory

@Gargron this is most certainly Greek even tough кафе is a valid Russian word that means cafe

Gregory

@tjhorner @grishka I haven't implemented replies there yet :D

Go Up