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

Doubled tags on Steem root posts #92

Open
espoem opened this issue Feb 7, 2019 · 2 comments
Open

Doubled tags on Steem root posts #92

espoem opened this issue Feb 7, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@espoem
Copy link

espoem commented Feb 7, 2019

Actual behaviour

Dpoll tags are doubled at a Steem post of the poll.

image

image

Test post: https://steempeak.com/dpoll/@elear/which-perks-would-you-like-to-have-the-most-on-an-upcoming-crowdfunding-campaign-for-utopian

(tags are not doubled on steemit interface)

Expected behaviour

Each tag should be present at most once.

@emre
Copy link
Owner

emre commented Feb 7, 2019

This might be related to editing. Will investigate.

@emre emre added the bug Something isn't working label Feb 7, 2019
@kekkyojin
Copy link

I think so. In

edit_poll method, code is not checking for the tags parameter to contain the settings.DEFAULT_TAGS and it is just concatenating them:

    if tags:
        tags = settings.DEFAULT_TAGS + tags
    else:
        tags = settings.DEFAULT_TAGS

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

No branches or pull requests

3 participants