4 Commits
Author SHA1 Message Date
olivier d3f3fe926a fix: scope tokens per host, harden Gitea support, port upstream fixes
Fork fixes:
- Global token is GitHub-only; never sent to Gitea/Forgejo hosts
- Gitea: download assets via browser_download_url (+token) so private repos work
- Gitea URL parsing keeps port and sub-path installs, strips browser sub-pages
- GitHub detected by hostname, not substring
- Gitea releases: follow pagination (X-Total-Count), skip drafts
- Gitea token validation against the repo; 404 is no longer "valid"
- Settings tab and migration log use this plugin's own id/folder
- Check-only mode no longer reinstalls/enables a missing plugin folder
- reloadPlugin reports load failures (enablePlugin resolves false)
- Repository / release-notes links work for both providers

Ported from upstream BRAT 2.2.0:
- Release sort: semver tags first, date fallback
- Null-safe version comparison, JSON shape guards
- Drop obsidian-daily-notes-interface (read daily note format directly)
- Notice.messageEl, CSS without !important, console.debug/error
2026-10-25 20:39:33 -04:00
olivier 91247d31e2 fix: reinstall missing plugin folders with enableAfterInstall honored
Tatortreiniger / tatort-reinigen (release) Has been cancelled
When a managed plugin's folder was empty/missing at update time, BRAT
reinstalled it via updatePlugin(), which hard-codes enableAfterInstall=false,
so the plugin came back on disk but stayed disabled until toggled by hand.
Detect absence with adapter.exists() (the errno check was desktop-only) and
pass the user's enableAfterInstall setting to the fresh install.
2026-10-05 09:48:10 -04:00
olivier f69790c2f9 fix: surface and recover from silent plugin re-enable failures after update
Tatortreiniger / tatort-reinigen (release) Has been cancelled
reloadPlugin() previously swallowed disablePlugin/enablePlugin exceptions
unless debuggingMode was on, and the update path always reported success
regardless of whether the reload actually worked. This let auto-updated
plugins (most often actively-developed ones like BindThem, since only a
real version bump exercises the reload path) end up silently disabled
after a background update, with no error and a false 'Updated' notice.

Now reloadPlugin() returns success/failure, always logs the error, retries
once via enablePluginAndSave as a fallback, and the update notice reflects
the real outcome so a failed re-enable is visible instead of silent.
2026-09-23 09:08:22 -04:00
olivier 8de00536fa Initial commit: BRAT fork with Gitea support
Tatortreiniger / tatort-reinigen (release) Has been cancelled
2026-05-24 18:35:09 -04:00