trustcafe-api-wrapper/utils/get_post_pksk.py
simonwt fb1953e953 Test the utils
Comment create wrapper
Test comment wrapper
2026-04-01 23:00:42 +01:00

9 lines
179 B
Python

def get_post_pksk(parent_pksk, post_url):
post_slug = post_url.strip('/post/')
return {
"pk": parent_pksk,
"sk": f"post#{post_slug}"
}