[Beem] [Version: 0.20.21] While tried to Post with a old post title, instead of publishing a new post, beem edits the old post
Project Information
- Repository: https://github.com/holgern/beem
- Project Name: Beem
Expected behavior
I expected i will be able to create a new post with a old post title.
Actual behavior
When i tried to post with a old post title, instead of posting a new post, beem edited the old post.
How to reproduce
Install beem 0.20.21 on you machine
Select an old post and pick the title
Now try posting through beem with the same title
You can try with below code
from beem.steem import Steem
stm = Steem(keys=<Your private posting key here>)
stm.post(title=<your tile>,body=<body of the post>, tags=<list of tags>)
Technical Analysis
When a user post from steemit or busy it tries to create a permlink similar to the tiltle if it's available. Like if the title is Hi this is a test
than the permlink is similar to this - hi-this-is-a-test
. Beem does the same. But if there is already a post with that permlink, steemit, busy tries to post with some addition in the permlink like- db4jnn-hi-this-is-a-test
. In case of beem, it always tries to post with the first rule and do not checks if there is a post with that permlink which led this issue of editing the old post. I tried couple of time and here are those transaction on blockchain- 1, 2
Possible Solution
This issue can be fixed, if beem could check if there is already a post with the permlink it created. In case there is already a post with that permlink, beem could add some random string with it which will solve this issue.
Recording Of The Bug
Chrome Version 75.0.3770.100 (Official Build) (64-bit)
Beem version 0.20.21
Operating system: Ubuntu 18.04LTS
GitHub Account
https://github.com/sourovafrin
Hey, @sourovafrin. Thank you for your contribution. Good to see that the issue got fixed already. Who could have thought that an issue like this exists on the project? Nice finding it out.
You bug description is very cool and detailed. Well-done. I have not seen a report this detailed in a while. I look forward to your next report.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @knowledges! Keep up the good work!
Hi @sourovafrin, your post has been upvoted by @bdcommunity courtesy of @priyanarc!
Support us by setting us as your witness proxy or delegating STEEM POWER.
JOIN US ON
Hi, @sourovafrin!
You just got a 0.38% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
Hey, @sourovafrin!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!