Skip to content

Use summary as summary for converted ActivityPub objects#9823

Merged
Gargron merged 1 commit intomasterfrom
fix-article-summary
Jan 16, 2019
Merged

Use summary as summary for converted ActivityPub objects#9823
Gargron merged 1 commit intomasterfrom
fix-article-summary

Conversation

@Gargron
Copy link
Copy Markdown
Member

@Gargron Gargron commented Jan 16, 2019

For non-Note objects, summary has a slightly different semantic meaning, and it doesn't make sense to use it as a content warning hiding the title and link to the article. So, for converted object types, display the title, then summary, then the link to the article.

Fix #8609

@ClearlyClaire
Copy link
Copy Markdown
Contributor

LGTM. This means such objects can't have a Content Warning though. Maybe use the title as a CW?

@Gargron
Copy link
Copy Markdown
Member Author

Gargron commented Jan 16, 2019

I see no good reason to make people click show more, since both the title and the summary of a blog post are typically oriented towards being displayed in public view, while what would be actually hidden by the CW is the main text which is not displayed anyway (link).

@Gargron Gargron merged commit 4ab4228 into master Jan 16, 2019
@Gargron Gargron deleted the fix-article-summary branch January 16, 2019 17:36
text: text_from_content || '',
language: detected_language,
spoiler_text: text_from_summary || '',
spoiler_text: converted_object_type? ? '' : (text_from_summary || ''),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this should be object[:sensitive] or something equivalent, so converted object types can still opt in to CWs

@nightpool
Copy link
Copy Markdown
Member

aren't there other converted object types besides articles though?

@Gargron
Copy link
Copy Markdown
Member Author

Gargron commented Jan 16, 2019

If a video or image is marked sensitive, it will be hidden. Since they don't have other text, it doesn't make sense to to make people click "show more" for nothing.

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.

3 participants