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

Don't add entry through API if it already exists #1797

Merged
merged 1 commit into from
Mar 16, 2016
Merged

Conversation

tcitworld
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documentation no
Translation no
Fixed tickets
License MIT

If an entry was with the same URL was re-sent a second time, a second article was created in DB. This fixes it.

Note that all metadata (archived, starred, tags, ...) associated with the second call to API will be applied to the original entry.

Also, checkout #1796

@j0k3r
Copy link
Member

j0k3r commented Mar 16, 2016

Good catch ! 👍

@tcitworld
Copy link
Member Author

Thank @ThibaudDauce :-)

j0k3r added a commit that referenced this pull request Mar 16, 2016
Don't add entry through API if it already exists
@j0k3r j0k3r merged commit 3500d40 into v2 Mar 16, 2016
@j0k3r j0k3r deleted the v2-fix-adding-entry-API branch March 16, 2016 20:40
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.

None yet

2 participants