Skip to content

fix(zsxq): separate content field from title, remove title truncation#1079

Merged
jackwener merged 2 commits intojackwener:mainfrom
Pandas886:fix/zsxq-content-truncation
Apr 18, 2026
Merged

fix(zsxq): separate content field from title, remove title truncation#1079
jackwener merged 2 commits intojackwener:mainfrom
Pandas886:fix/zsxq-content-truncation

Conversation

@Pandas886
Copy link
Copy Markdown
Contributor

Summary

  • Split getTopicText to return only title, add getTopicContent for body text
  • Remove .slice(0, 120) that was truncating titles
  • content field now contains full body text instead of duplicating title

Problem

  • title was being truncated to 120 characters
  • content field was identical to title (both used the same getTopicText function)

Solution

  • getTopicText now returns only topic.title
  • New getTopicContent function extracts body text from talk.text, question.text, etc.
  • toTopicRow uses getTopicContent for the content field

Testing

Verified with json/yaml/plain/md/csv formats - content now shows full text.

- Split getTopicText to return only title, add getTopicContent for body text
- Remove .slice(0, 120) that was truncating titles
- content field now contains full body text instead of duplicating title
@Pandas886
Copy link
Copy Markdown
Contributor Author

Without the full content, truncated titles alone have limited usefulness. This fix ensures users get actual body text when querying topics.

@jackwener jackwener merged commit b65df6b into jackwener:main Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants