diff --git a/bp/auth/routes.py b/bp/auth/routes.py index c851976..ad0d600 100644 --- a/bp/auth/routes.py +++ b/bp/auth/routes.py @@ -27,7 +27,7 @@ from shared.config import config from shared.utils import host_url from shared.infrastructure.urls import federation_url 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 .services import ( @@ -140,12 +140,12 @@ def register(url_prefix="/auth"): if u2: u2.last_login_at = now if anon_session_id: - await emit_event( + await emit_activity( s, - "user.logged_in", - "user", - user_id, - { + activity_type="rose:Login", + actor_uri="internal:system", + object_type="Person", + object_data={ "user_id": user_id, "session_id": anon_session_id, }, diff --git a/shared b/shared index d697709..2e9db11 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit d697709f60a71941880f4288be469913d11ce967 +Subproject commit 2e9db119252aae9db2374b948c687467081a0b85