You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed inside #61, we should limit the length of posts to 500 characters. Longer should be uploaded to IPFS in order to avoid an uncontrolled grow of the chain on-disk size.
Solution
The solution is pretty straightforward and can be implemented as a check inside the MsgCreatePost, MsgEditPost and Post#Validate methods:
iflen(post.Message) >500 {
// return error
}
The text was updated successfully, but these errors were encountered:
Context
As discussed inside #61, we should limit the length of posts to 500 characters. Longer should be uploaded to IPFS in order to avoid an uncontrolled grow of the chain on-disk size.
Solution
The solution is pretty straightforward and can be implemented as a check inside the
MsgCreatePost
,MsgEditPost
andPost#Validate
methods:The text was updated successfully, but these errors were encountered: