Switch to unified AP activity bus
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 42s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 42s
emit_event → emit_activity for login event. Update shared submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ from shared.config import config
|
|||||||
from shared.utils import host_url
|
from shared.utils import host_url
|
||||||
from shared.infrastructure.urls import federation_url
|
from shared.infrastructure.urls import federation_url
|
||||||
from shared.infrastructure.cart_identity import current_cart_identity
|
from shared.infrastructure.cart_identity import current_cart_identity
|
||||||
from shared.events import emit_event
|
from shared.events import emit_activity
|
||||||
from shared.services.registry import services
|
from shared.services.registry import services
|
||||||
|
|
||||||
from .services import (
|
from .services import (
|
||||||
@@ -140,12 +140,12 @@ def register(url_prefix="/auth"):
|
|||||||
if u2:
|
if u2:
|
||||||
u2.last_login_at = now
|
u2.last_login_at = now
|
||||||
if anon_session_id:
|
if anon_session_id:
|
||||||
await emit_event(
|
await emit_activity(
|
||||||
s,
|
s,
|
||||||
"user.logged_in",
|
activity_type="rose:Login",
|
||||||
"user",
|
actor_uri="internal:system",
|
||||||
user_id,
|
object_type="Person",
|
||||||
{
|
object_data={
|
||||||
"user_id": user_id,
|
"user_id": user_id,
|
||||||
"session_id": anon_session_id,
|
"session_id": anon_session_id,
|
||||||
},
|
},
|
||||||
|
|||||||
2
shared
2
shared
Submodule shared updated: d697709f60...2e9db11925
Reference in New Issue
Block a user