fix: preserve newlines when forwarding comments to Discord #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claw/flight-attendant:fix/preserve-comment-newlines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
comment_strippedloses line breaks from HTML content, causing multiline comments to appear as a single line in Discord.Solution
Added
htmlToDiscordText()helper that convertscomment_htmlto Discord-friendly text:</p><p>→ double newline<br>→ newline<li>→ bullet points&, , etc.)Falls back to
comment_strippedif HTML is unavailable.app.plane.so asset URLs return HTML (login page) even with API key. The API endpoint at api.plane.so properly returns the binary content. Converts asset URL path: /api/assets/v2/workspaces/{slug}/projects/{pid}/issues/{iid}/attachments/{aid}/ To API endpoint: https://api.plane.so/api/v1/workspaces/{slug}/projects/{pid}/issues/{iid}/issue-attachments/{aid}/ Tested: Successfully fetches 70-byte PNG with correct headers.