SteemJiang bug修复

in hive-180932 •  5 years ago  (edited)

bug.jpg

SteemJiang在修改文章重新上传时有时会出现一个错误(如图所示),RPCError: Assert Exception:equal( com.parent_permlink, o.parent_permlink ): The permlink of a comment cannot change. at new RPCError。错误显示的是“parent_permlink”不能修改!。

文章的父地址是从标签中取的,存入到“category”中,现在的社区过滤也是用这个目录。我在文章修改的时候还是从设置标签中取:parentPermlink = this.tags.trim().split(/\s+/)[0] ,如果你改动了第一个标签,就会触发这个错误!哈,这个错误还挺不容易排察的!毕竟我平时还挺少对文章再次改动的。

把这个参数写死就可以啰:
parentPermlink = post.category

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  



HIVE (THE NON-COMMUNIST, NON-CENSORED, JUSTIN SUN EXCLUDING SOCIAL BLOCKCHAIN) IS ALIVE, COME JOIN US!!!

https://peakd.com <--- Log in with your Steem account today!!

Hi! Did you know that steemit.com is now censoring users and posts based on their opinions?
All the posts of these users are gone!
https://github.com/steemit/condenser/commit/3394af78127bdd8d037c2d49983b7b9491397296

Here's a list of some banned users:
'roelandp', 'blocktrades', 'anyx', 'ausbitbank', 'gtg', 'themarkymark', 'lukestokes.mhth', 'netuoso', 'innerhive'
See anyone you recognize? There could be more, they also have a remote IP ban list.

Will you be censored next?

  ·  5 years ago 

@tipu curate

Upvoted 👌 (Mana: 5/10 - need recharge?)

不错,用起来!

多谢支持!