finn to FediverseEnglish • 1 year agoDecentralization Revolution: Reclaiming the Internet's True Vision from Big Tech's Graspmessage-square23arrow-up1586arrow-down13
arrow-up1583arrow-down1message-squareDecentralization Revolution: Reclaiming the Internet's True Vision from Big Tech's Graspfinn to FediverseEnglish • 1 year agomessage-square23
minus-square@pnpbioslinkEnglish4•1 year agoI think there should be a middleware layer for posts and comments, where you can write a number of custom routines. func onNewPost( (user, post, commitFn, rejectFn) => { if( user.karma < 100) {rejectFn("Not enough karma to post here.")} if( post.length < 100) {rejectFn("Post is too short.")} commitFn(user, post); });
I think there should be a middleware layer for posts and comments, where you can write a number of custom routines.
func onNewPost( (user, post, commitFn, rejectFn) => { if( user.karma < 100) {rejectFn("Not enough karma to post here.")} if( post.length < 100) {rejectFn("Post is too short.")} commitFn(user, post); });