Email or username:

Password:

Forgot your password?
572 posts total
Gregory

#Smithereen update: basic support for polls is in. You can vote and see results. They will be up to date if the remote server sends Update{Question}. And that's it. You can't create your own polls yet.

#activitypub @activitypub #mastodev

dansup

@grishka Wow, never gunna live that down eh, its been a long day!

[DATA EXPUNGED]
Gregory

Interesting, Mastodon actually sends Update{Note} every now and then to keep poll results in sync across instances.

a1ba-nyan
@grishka it's almost in sync after user votes. Well, at least it gets updates.

Which is not a sync at all.
Gregory

Test multi-choice poll

Anonymous poll

Poll

owo
7
46.7%
uwu
12
80%
ъуъ
5
33.3%
ъэъ
6
40%
15 people voted.
Voting ended 19 Aug 2021 at 16:36.
Gregory

Interesting trivia about VK polls, on the web at least, I just realized: they used to show the 100% filled bar on the option that has the most votes.

(they no longer do this, I took the second screenshot just now)

Gregory

These two screenshots side-by-side also exemplify how the modern "clean" design wastes screen area on whitespace. And this is with my userstyle that makes fonts smaller in many places.

Gregory

Is there any #activitypub software that implements public polls? Public, as in, everyone sees who voted for what.

@activitypub #mastodev

Gregory

Or, in other words: why do I have to do everything myself? 🤣

Gregory

At least I deployed that thing to my server and nothing blew up, that's a good sign. Now I need to actually display them properly and implement voting. Having polls but not being able to vote in them is kinda pointless, isn't it?

Gregory

#Smithereen update: I made a better comment form on mobile. It now almost feels like an app!

#activitypub #mastodev

Gregory

Next up: polls (that are better than what Mastodon has)

Gregory

Hm. I think I could actually use that newfangled "paint worklet" API to draw blurhashes in #Smithereen? 🤔

And since it's more in the "nice to have" territory and not critical functionality, fall back to solid colors for browsers that don't support it yet. Like Firefox where it's still "under consideration".

Gregory

This is a test post from my iPhone that I don't use and that needs a new battery

danila 🦔

@grishka приложение выглядит уж очень хорошо):golang:

Gregory

I miss the time when people weren't putting #'s in front of random words

wakest ⁂

@grishka I much preferred how flickr and tumblr did hashtags as a separate area.

Gregory

There goes the adversarial interoperability.
github.com/austinhuang0131/aus

Though he's a Chinese living in Canada — so Facebook could very well reach him from there. It would be funny to see them being powerless against a Russian 😏🤔

Gregory

Whoever you are whose crawler this is, fix your thing already. You're supposed to use nodeinfo instead of hardcoded API paths with typos. And maybe Mastodon's /api/v1/instance, but that's debatable.

#activitypub @activitypub

Michael Vogel
@grishka Please have a look at the user agent string. This should reveal where the requests come from. Most likely this is an older Friendica version, then the user-agent string tells you not only the version of the system but also the exact site name.

In newer versions we now use a different order of requests to reduce the amount of needed queries per server. BTW: All the queried endpoints are valid in some versions of Friendica (which at one point hat the name Friendika) and GNU Social (which had the name Statusnet before).

The current server detection looks like this: github.com/friendica/friendica…

In current versions we search for "/.well-known/nodeinfo" first. And we only query those endpoints above only when this query hadn't been successful (and also when the "host-meta" path is present). This seems to work fine with Smithereen (I just did a quick test against a known server).
@grishka Please have a look at the user agent string. This should reveal where the requests come from. Most likely this is an older Friendica version, then the user-agent string tells you not only the version of the system but also the exact site name.
Gregory

I'm almost done refactoring #Smithereen to use libvips (image manipulation library) via JNA, without an additional JNI wrapper thing that needs to be built for every OS+CPU and is just an annoyance to deal with.

As a side effect, with very little effort and zero DLLs compiled myself, I was able to run it on Windows, because why not. To anyone saying "Java is heavy": here it's running on the old-ass laptop I bought at a thrift store to test Telegram calls.

@activitypub #activitypub #mastodev

Gregory

I wonder if it's possible to run it on an Android phone? You should be able to install a JRE with something like Termux 🤔
And there's prebuilt libvips for Linux on ARM anyway

Gregory

Modern JRE versions allow running .java sources without the need to compile them first. Could you call these Java scripts? 🤔

Go Up