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 conditionals to avoid url base duplication on stashbox submit #3579

Merged
merged 1 commit into from
Apr 17, 2023
Merged

add conditionals to avoid url base duplication on stashbox submit #3579

merged 1 commit into from
Apr 17, 2023

Conversation

mmenanno
Copy link
Collaborator

Currently twitter and instagram URL bases are appended to twitter and instagram before submitting to stashbox. This means that if the existing entry had the full url instead of just a username, the base gets duplicated. This adds logic to prevent that duplication.

@DogmaDragon
Copy link
Collaborator

Tested, works in all cases now.

One possible improvement would be to upgrade from http:// to https:// if a link with http:// is submitted.

@DogmaDragon DogmaDragon added the bug Something isn't working label Mar 22, 2023
@mmenanno mmenanno marked this pull request as ready for review March 27, 2023 04:00
@WithoutPants WithoutPants added this to the Version 0.21.0 milestone Apr 17, 2023
@WithoutPants WithoutPants merged commit 62a1bc2 into stashapp:develop Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants