Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add articleType and attachment for non-text articles #56

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

nonumpa
Copy link
Member

@nonumpa nonumpa commented Jan 2, 2022

Stores non-text messages in separate articles
Spec: https://g0v.hackmd.io/aJqHn8f5QGuBDLSMH_EinA

Make sure update schema before release

npm run reload -- articles


// There will be an attachment describing the file when articleType is not TEXT
attachment: {
type: 'nested',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: will there be multiple attachments? If not, we can consider using attachmentUrl + attachmentHash instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There won't be multiple attachments. I'll use attachmentUrl and attachmentHash.

@MrOrz MrOrz merged commit cd566d4 into master Jan 5, 2022
@MrOrz MrOrz deleted the image-collection branch January 5, 2022 13:47
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.

None yet

3 participants