emre / dpoll.xyz

Decentralized poll app on the top HIVE blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubled tags on Steem root posts

espoem opened this issue · comments

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.

This might be related to editing. Will investigate.

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