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

Issue 10491: Possibility for simple shortening added #10492

Merged
merged 2 commits into from Jul 14, 2021

Conversation

annando
Copy link
Collaborator

@annando annando commented Jul 12, 2021

Fixes #10491

Now it is possible to deactivate the text shortening that shortens after a line feed. When deactivated the shortening will always be at the maximum character limit.

@annando
Copy link
Collaborator Author

annando commented Jul 12, 2021

@nupplaphil something is wrong with the tests.

@MrPetovan MrPetovan added this to the 2021.09 milestone Jul 14, 2021
@MrPetovan
Copy link
Collaborator

This PR doesn't look right, there is some remote deletion code mixed with the simple shortening.

Additionally, aren't "Simple shortening" and "Intelligent shortening" mutually exclusive?

@annando
Copy link
Collaborator Author

annando commented Jul 14, 2021

@MrPetovan yeah, I mixed some experimental stuff with the intended code. The two options aren't excluding each other. The existing one is for detecting which link to take and the other one is for deciding when to cut the text.

@MrPetovan
Copy link
Collaborator

This really isn't obvious with the current setting names. 😅

@MrPetovan
Copy link
Collaborator

I simplified your branch, between the multiple partial reverts and the merge from develop, it had 3 times the number of commits it should have had.

@MrPetovan MrPetovan merged commit 2ff5889 into friendica:develop Jul 14, 2021
@annando annando deleted the simple-short branch July 14, 2021 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Twitter addon post trimming is unusable
2 participants