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 option to show/hide post previews #1033

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

twizmwazin
Copy link
Contributor

In an issue somewhere someone suggested that titles and bodies were being duplicated when it was actually just that the user copied the title and article description into their post. I thought maybe adding an option to disable the preview would be a good idea.

When enabled/current behavior:
image

After with disabled:
image

@bappitybup
Copy link
Contributor

bappitybup commented Jul 14, 2023

can't view these images, I get this
Screenshot_20230714-100654

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 14, 2023

I think this is better named post link preview. Not to be confused with post markdown body preview.

@MV-GH
Copy link
Collaborator

MV-GH commented Jul 14, 2023

Another option we can look into is, automatically hide the meta description if its the same as the meta title, and the meta title if its the same as the post title.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

I don't need to see the before and after, its just about the metadata cards.

LGTM

@@ -429,7 +430,7 @@ fun PostBody(
)

// The metadata card
if (fullBody && post.embed_title !== null) {
if (fullBody && showPostLinkPreview && post.embed_title !== null) {
Copy link
Member

Choose a reason for hiding this comment

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

Ohh okay this is about the metadata cards.

@dessalines dessalines merged commit 6027810 into LemmyNet:main Jul 14, 2023
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.

4 participants