mirror of
https://github.com/FunnyWolf/agentic-soc-platform.git
synced 2026-08-22 13:12:56 +02:00
13 lines
286 B
Python
13 lines
286 B
Python
import hashlib
|
|
|
|
|
|
def inbox_group_name(user_id):
|
|
return f"inbox.user.{user_id}"
|
|
|
|
|
|
def comments_group_name(content_type, object_id):
|
|
identity = f"{content_type}:{object_id}"
|
|
digest = hashlib.sha256(identity.encode("utf-8")).hexdigest()
|
|
return f"comments.record.{digest}"
|
|
|