gitforge/modules
Nils Goroll f8a8dd2c29 chore: remove _old_uid hack (#11277)
The virtual session code creates an in-memory session, and only upon release does it copy it to the actual session store. This makes a lot of sense to avoid operations on session stores with potentially high cost for I/O.

This commit removes a weird hack used in this code: virtual sessions were always created with an _old_uid=0 key/value pair, which was taken into account when checking if the session needed to be persisted.

As I could not find _any_ use of _old_uid in the code base, this looks like something worth removing.

The first ever mention of _old_uid is b33f7f792b and even there it is part of a
newly added file with no additional information. So likely code copied over from another project?

- no tests to add, remove or change
- not relevant for documentation
- not relevant for release notes

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11277
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Nils Goroll <nils.goroll@uplex.de>
Co-committed-by: Nils Goroll <nils.goroll@uplex.de>
2026-02-17 00:52:56 +01:00
..
actions
activitypub
analyze
assetfs feat: optimization: use fs.ReadFile (#10987) 2026-01-22 16:26:18 +01:00
auth fix: portable error reporting for PAM (#11296) 2026-02-16 05:57:01 +01:00
avatar
base feat(ui): dedicated icon for CITATION file (#10873) 2026-01-17 10:10:56 +01:00
cache chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
card
charset chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
container
csv
emoji
eventsource
forgefed feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
generate
git chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
gitrepo
graceful fix: remove trailing null byte for local connection (#11295) 2026-02-16 05:55:50 +01:00
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer refactor: replace Value() from Option[T] with Get() & ValueOrZeroValue() (#11218) 2026-02-10 16:41:21 +01:00
issue/template
json
jwtx chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
keying chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
label
lfs
log
markup fix: escape HTML tags in inline code blocks in description (#10897) 2026-01-25 23:10:56 +01:00
mcaptcha
metrics
migration
nosql
optional refactor: replace Value() from Option[T] with Get() & ValueOrZeroValue() (#11218) 2026-02-10 16:41:21 +01:00
options
packages fix: only skip explicit >= 0 and leave pessimistic version locking intact (#11153) 2026-02-08 04:17:55 +01:00
paginator
pprof
private
process
proxy
proxyprotocol fix: remove trailing null byte for local connection (#11295) 2026-02-16 05:55:50 +01:00
public
queue
recaptcha
references
regexplru
repository feat(perf): remove unused size url parameter for local avatars (#10932) 2026-01-20 04:59:15 +01:00
secret
session chore: remove _old_uid hack (#11277) 2026-02-17 00:52:56 +01:00
setting fix: improve SQLite "database is locked" errors by increasing default SQLITE_TIMEOUT (take 2) (#11292) 2026-02-14 22:34:09 +01:00
sitemap
ssh fix: don't clobber authorized_keys file during installation (#10948) 2026-01-23 18:38:09 +01:00
storage chore: use require.Error() over require.Errorf() (#11037) 2026-01-25 19:36:02 +01:00
structs feat: implement ephemeral runners (#9962) 2026-02-16 18:56:56 +01:00
svg
sync
system
templates feat: improve label filtering exclusion (#10702) 2026-02-08 00:31:31 +01:00
test
testimport
testlogger chore(ui): change /devtest to /-/demo (#11019) 2026-01-26 13:12:25 +01:00
timeutil
translation
turnstile
typesniffer
updatechecker
uri
user
util
validation feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
web
webhook
zstd