Skip to content

refactor(labrinth): combine logic for external notification endpoints#6578

Open
Sychic wants to merge 3 commits into
mainfrom
sychic/notification-refactor
Open

refactor(labrinth): combine logic for external notification endpoints#6578
Sychic wants to merge 3 commits into
mainfrom
sychic/notification-refactor

Conversation

@Sychic

@Sychic Sychic commented Jun 30, 2026

Copy link
Copy Markdown
Member

also introduce method to not send an email

@modrinth-bot

Copy link
Copy Markdown
Member

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

let status = if failed.is_empty() {
StatusCode::ACCEPTED
} else {
StatusCode::MULTI_STATUS

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

207 is more of a WebDAV-only status code; would change the endpoint to turn a map of user IDs -> email send status (no email associated with account | failed to send (likely invalid email) | internal error)

Comment thread apps/labrinth/src/routes/internal/external_notifications.rs
@Sychic Sychic force-pushed the sychic/notification-refactor branch from e563e9e to 7f1a3f7 Compare July 1, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants