mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-03-21 17:24:38 -05:00
if post feeling_id < 5, set to 0
This commit is contained in:
parent
153df65692
commit
ef67cfd2b7
|
|
@ -197,6 +197,11 @@ PostSchema.method<HydratedPostDocument>('json', function json(options: PostToJSO
|
|||
post.community_id = community.community_id;
|
||||
}
|
||||
|
||||
// * Some sanity checks
|
||||
if (post.feeling_id < 5) {
|
||||
post.feeling_id = 0;
|
||||
}
|
||||
|
||||
return post;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user