eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

201
active users

#tuskydev

1 post1 participant0 posts today

The code to display attachements in a grid is one of the most complex parts in Tusky. There are different aspect ratios, blurhashes, focuspoints, ...

I'm currently rewriting it in Compose and it is SHOCKINGLY EASY 😳

The old code to respect the focuspoint alone has 144 lines including comments (it does some Matrix calculation stuff). The new code is 6 lines (it just works natively in Compose, lol)

How does the "Replied to _" above Posts work in Mastodon?
The "_ boosted" is easy, the info is in the Status object. But there is only the in_reply_to_account_id and not the full name of the account that is being replied to.
I would check if the account is already somewhere else in the timeline, and otherwise make a api request to get the name. Is that the best way? Maybe I'm missing something.
#mastodev #tuskydev