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

fix: repeated content on reblog without comment (re-open) #1627

Merged
merged 1 commit into from
Feb 5, 2023

Conversation

kkoyung
Copy link
Contributor

@kkoyung kkoyung commented Feb 5, 2023

(This is a re-opened PR of the previous PR #1619 in which I forgot to rename my branch.)

Resolve #1541

When a user reblog a post without comment, some non-mastodon servers like Akkoma and GoToSocial copy the content of the original status to the content of the new reblogging status, instead of leaving it empty.

Currently, Elk treats this as reblogging with comment, and displays both status.content and status.reblog.content. As a result, the content is displayed twice.

After this fix, StatusCard.vue will consider both reblog with empty status.content and reblog with repeated status.content as reblog without comment, and display it with corresponding format.

@stackblitz
Copy link

stackblitz bot commented Feb 5, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 5, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 5c2461c
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/63df222bfb6a6000092bc2e7

@netlify
Copy link

netlify bot commented Feb 5, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 5c2461c
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/63df222b2c0958000ab45d20
😎 Deploy Preview https://deploy-preview-1627--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@danielroe danielroe merged commit 297b104 into elk-zone:main Feb 5, 2023
@kkoyung kkoyung deleted the fix-repeated-reblog-content branch February 17, 2023 15:48
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.

Repeat/Reblog statuses have duplicated content on Akkoma/GoToSocial
2 participants