vienalatina/apps/board
Claude 751d452556
Fijar: moderators choose what gets read first
Half of this already existed and nothing said so. `threads.pinned` has
been in the schema since the board shipped, with an index on it and a
toggle route, but it was @admin_required, reachable only from inside a
thread, and Inicio ignored it.

Who. Moderators and above, on both halves. Curating what the public
reads is the whole of a moderator's job, and content.py has said so
since the queue was built. Locking a thread rides the same route and is
still an admin's: it stops named people saying anything more to each
other, which is power over people rather than over content, and this
codebase keeps those apart everywhere else.

What is stored. A moment, not a flag — several posts can be pinned and
the newest pin goes first, so the value is the order. `pinned:
'2026-10-13T12:00:00'` in a post's own frontmatter, written only when
true; `threads.pinned_at` beside the flag the wall already had, cleared
on unpinning so that pinning again puts it where a new pin belongs. One
key carrying both means `{{ if .Params.pinned }}` still reads as a
yes/no and nothing has to be kept in step with anything.

translate.py needs nothing: it copies the whole frontmatter and rewrites
only TRANSLATED_KEYS, so a pinned post is pinned in German too. Asserted
against the real list rather than assumed.

Two ways to pin a public post — the switch beside Publicar, and one
press in the Contenido list, because deciding what the site leads with
means looking at the list rather than opening each post to find out what
is in it. Both commit; the file is the record.

Migration 10 adds the columns and recreates the wall's index, which now
names pinned_at. `CREATE INDEX IF NOT EXISTS` leaves an existing index
exactly as it is, so without that a running server keeps the old
definition forever while a fresh install gets the new one. Nothing
breaks either way, which is the problem.

Checked rather than assumed: built with Hugo 0.135.0 and the pipeline's
flags, two pinned posts come out above a newer unpinned one and in
pin order rather than post order, with the pill on the cards and on the
article. And the wall rendered at 390px, where the pinned thread leads
and nothing overflows.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-13 18:24:32 +00:00
..
static The calendar is a month again, at every width 2026-10-13 18:05:31 +00:00
templates Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
tests Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
activity.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
app.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
auth.py The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +00:00
board.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
brand.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
content.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
db.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
events.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
gitea.py Two calendars: one for everybody, one for the members 2026-10-03 09:53:54 +00:00
home.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
identity.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
invites.py Let members get a password of their own 2026-09-25 17:49:39 +00:00
mail.py Let members get a password of their own 2026-09-25 17:49:39 +00:00
media.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
members.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
messages.py Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
migrations.py Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
passwords.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
profiles.py A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
render.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
requirements.txt Write the site from the members area instead of Decap 2026-09-25 15:07:31 +00:00
schema.sql Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
security.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
status.py Estado del sistema was lying about the backups 2026-10-06 14:03:30 +00:00
submissions.py Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
titles.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
uploads.py Phase C: private messages, with blocking and photos 2026-09-28 16:10:52 +00:00
wsgi.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00