Hive-Nectar v0.0.11: A Small But Necessary Patch
Hey everyone,
Short post today for a small but important update to hive-nectar
. This one isn't a fancy new feature, but rather a necessary patch that came directly from community feedback.
A user who was migrating their projects from beem
to hive-nectar
pointed out that their scripts were failing to load a few posts. After digging into it, we realized that some older communities, particularly waivio, are still setting their community tag via the post's json_metadata
instead of using the built-in community
field that is standard now.
The Comment()
function was causing a key error because the community
field was not present, but the community tag was in the json_metadata
of the post.
To ensure backward compatibility and support for these older communities, I've pushed an emergency patch. The function will now check for the community in the json_metadata
if the primary community
field is not present.
hive-nectar
now sits at version v0.0.11 with this simple fix. It's not a spectacular change, but it was a needed one to ensure the library works as expected across the entire Hive ecosystem, old and new.
You can get the latest version from GitHub or PyPI.
- GitHub: https://github.com/TheCrazyGM/hive-nectar
- PyPI:
pip install hive-nectar --upgrade
As always, a huge thank you to the community members who provide feedback and help find these edge cases!
Michael Garcia a.k.a. TheCrazyGM
Congratulations @thecrazygm! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 500 posts.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Check out our last posts:
thanks
It's the little things !PIMP
Keep up the great work its almost time to start a promotional tour!
!PAKX
!PIMP
!PIZZA
View or trade
PAKX
tokens.Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.
$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm
Come get MOONed!
I had no idea that there was a difference between older and newer communities. That's so curious and interesting. Can the older communities be updated in some way, or is it just a thing that can't be changed, and must be accepted as is? Congratulations on the fix, by the way! 😁 🙏 💚 ✨ 🤙
They could, they would just need to change the frontend. Right now they just append
{"community": "old_community"}
thejson_metadata
field of the post. Whereas the newer communities, e.g. all the ones withhive-XXXXXX
in the name, set the community by using that community as theparent_author
but leavingparent_permlink
blank (or else it's a comment). Which to be honest doesn't seem as intuitive, but makes sense as the newer communities are accounts that have membership fields and roles etc.Oh, OK, I'm glad that they can be updated. That's fascinating, and it helps me understand new aspects of Hive, so thank you for that explanation. 😁 🙏 💚 ✨ 🤙
Hello thecrazygm!
It's nice to let you know that your article won 🥈 place.
Your post is among the best articles voted 7 days ago by the @hive-lu | King Lucoin Curator by keithtaylor
You and your curator receive 0.0070 Lu (Lucoin) investment token and a 6.93% share of the reward from Daily Report 740. Additionally, you can also receive a unique LUSILVER token for taking 2nd place. All you need to do is reblog this report of the day with your winnings.
Buy Lu on the Hive-Engine exchange | World of Lu created by @szejq
STOP
or to resume write a wordSTART