Anahita Services v1.8.0
Upgrading
- An app that asks a list for more than 100 gets 100, and pages for
the rest with
start, aslimitandpagination.limitsay. Anahita Web asks for 100 at most, and needs nothing.
Fixed
- Reading how the viewer and the profiles on a page stand to each other holds one database connection, not up to nine. Each of the nine relations it reads (following either way, blocks, blocked servers, mutes, admins, requests, invitations, events open to a host's followers) kept its answer open until the last was read, so a busy site could run out of connections sooner than it needed to.
- A list sends 100 at most, however many are asked for. Most lists
read as many as a request said: search, a profile's posts, the Following
feed, the posts of a hashtag or a location among them, so one request
could ask the database for every row. Each now holds 100 at most, and
says so in its
limit; 20 when none is asked.
Changed
- A service stops gracefully. Every API service, and the graph, file
and mail services, told to stop, as Kubernetes tells a pod it moves or
replaces (
SIGTERM), takes no new requests and finishes those it is answering, for up to 20 seconds, within the 30 Kubernetes gives (Docker Compose gives 10 unlessstop_grace_periodsays more). They used to end at once and drop them. web-shell, which sends the web app's pages, stops as it did.
Anahita Services v1.7.0
Upgrading
- An app that reads the Following feed's total (
GET /feeds/leaders/) readspagination.has_moreinstead: the total is 0 now. Anahita Web readshas_morefrom its next release, and before it takes a full page to mean there is more, so it pages as before. - Migration
20261122000025drops seven indexes fromnodesandedges, run by the migration job as any other; on a large site it takes a moment, and nothing is locked for long.
Fixed
- Joining by invitation signs in with a session that can be ended. Somebody who accepted an invitation was signed in with a session that was never recorded against them, so a password reset or their account's deletion left it working until it expired. It is now the same session a sign-in makes.
- An empty secure-cookie key is reported once, as missing, not also as the wrong size.
- A reply shows on the page of a hashtag or a location it carries, to whoever can see the post at the top of its thread, as the docs say. The page judged a reply by its own audience, which a reply does not have, and left every one out.
- An audio post shown in an article or a topic is cited, as every other kind of post is: the address of one on a line of its own was shown by the web app and not counted as a citation.
- A post sent to the fediverse always leads to the page of its kind.
A video or audio post whose file was not ready, or a photo post whose
pictures could not be read, could lead to
/notes/12.
Changed
- graph-grpc-service no longer logs every request it is sent, nor the SQL of every list. Each request was written out whole, a new post's words among them; errors are still logged where they happen.
- Quicker feeds, posts and likes: a feed's quoted posts read in one call, an event list's hosts in one, a post's page asking for the viewer's relations once, a like reading its post again alone, a feed's defaults read once, a post's hashtags found without compiling their pattern each time, notifications nobody may read removed in one go, and email templates parsed once.
- The Following feed is not counted. Counting it read the whole feed
on every page, every access rule on every post: half a second a page on
a copy of banu.io, against a fiftieth of a second for the page itself.
GET /feeds/leaders/now answers withpagination.has_more, and atotalof 0; the web app readshas_more(API). - Seven indexes that were twins of others are dropped from
nodesandedges(migration20261122000025): each was on the same column as the primary key or another index. Nothing read slower without them on a copy of banu.io, and every post written has fewer indexes to update. - A post goes out to the fediverse quicker. It is made once and queued for every server in one go, not once for each (a thousand servers: 0.09 seconds, against 2.6); whoever it is sent for is read once a minute, not for each server; and the people it names and those tagged in it are read together.
- A post from the fediverse is answered at once, and given its link's card after, as its pictures are: reading the page could keep the server that sent it waiting up to six seconds.
- A post's settings are answered alike for every kind of post: who
may see it, reply to it and quote it, its content warning and its pin,
by the one handler that text, photo and video posts each kept a copy
of. A content warning asked of a reply somebody may not change is
answered as its thread decides, as a note's was, and a deleted reply's
with
410.
Removed
- The
entity.auth-service.user.signup.v1event, published when somebody joined by invitation and heard by nothing. The administrators are still emailed.
Anahita Web v1.3.9
Works with Anahita Services v1.4.0 or later.
Changed
- Share on a mobile opens the phone's own share sheet, with no dialog in front of it: the sheet has copying, email, messages and the Mastodon and Bluesky apps already. On a desktop, and for something that is not public, the dialog stays as it was.
- A reply's pictures open in the lightbox, as a photo post's do: larger, zoomed into, and stepped or swiped through, with the reply's words and heart beside them. The arrows beside a picture are gone where there is nothing to step to.
- The lightbox on a mobile is the picture alone, full screen, with a bar at the top and the writer, words and buttons at the bottom; a tap hides them. Swipe through the pictures, pull down or go back to close, double-tap or pinch to zoom. Reply opens the replies in a sheet over the picture, to read and answer there. Locations and Cited by are on the post's page; on a wider screen the lightbox is as it was.
