MCPcopy Create free account
hub / github.com/pollinations/pollinations / build_linkedin_post_text

Function build_linkedin_post_text

social/scripts/common.py:748–761  ·  view source on GitHub ↗

Build the final LinkedIn post text from structured fields.

(post_data: Dict)

Source from the content-addressed store, hash-verified

746
747
748def build_linkedin_post_text(post_data: Dict) -> str:
749 """Build the final LinkedIn post text from structured fields."""
750 parts = []
751
752 for field in ("hook", "body", "closing"):
753 value = (post_data.get(field) or "").strip()
754 if value:
755 parts.append(value)
756
757 hashtags = [tag.strip() for tag in post_data.get("hashtags", []) if tag.strip()]
758 if hashtags:
759 parts.append(" ".join(hashtags[:5]))
760
761 return "\n\n".join(parts)
762
763
764def build_instagram_post_text(post_data: Dict) -> str:

Callers 3

generate_linkedin_postFunction · 0.90
commit_weekly_to_newsFunction · 0.90
normalize_platform_postFunction · 0.85

Calls 2

getMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected