Webapp hardening + perf / CSP nonce-only / plugin-builder API guard + token autogen / cookie Secure / XSS fixes (QR, postMessage) / auth-me SWR dedup / SSR fetch cache / entry-capture redesign (gift/partner/referral) / payment webhooks (yoomoney sign, tribute trb_user_id) / email-only partners+referrals / INSTALL guide

This commit is contained in:
Vladless
2026-04-18 18:12:05 +00:00
parent cc2c9fbdba
commit 0b17346cb6
12 changed files with 122 additions and 15 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ async def count_unread_for_identity(
.select_from(WebNotification)
.where(
WebNotification.identity_id == identity_id,
WebNotification.read is False,
WebNotification.read == False, # noqa: E712 SQLAlchemy expression
)
)
return result.scalar() or 0
@@ -103,7 +103,7 @@ async def mark_all_read_for_identity(
update(WebNotification)
.where(
WebNotification.identity_id == identity_id,
WebNotification.read is False,
WebNotification.read == False, # noqa: E712 SQLAlchemy expression
)
.values(read=True)
)