on master help sign in
Merge pull request #152 from ilyakooo0/actual-develop

Strip all messages now

commit864681341ae7fa79f89e812c5338bd81e9233c57 authoriko <ilyakooo0@gmail.com> dateThu 16 May 2019, 23:51 (7 years ago) parentae96b22fab81ee
1 file changed+2−2
unifiedsplit
denis/src/Data/Query.hs+2−2
denis/src/Data/Query.hs+2−2
@@ -1048,9 +1048,9 @@ sendMessage selfId (MessageCreation (Just gId) uId@Nothing (Jsonb body)) = do
10481048 (Only mId) <- manipulateParams createMessageQ (selfId, Just gId, uId, Jsonb $ stripPostElement body)
10491049 >>= firstRow >>= fromMaybe500
10501050 return mId
1051−sendMessage selfId (MessageCreation gId@Nothing (Just uId) body) = do
1051+sendMessage selfId (MessageCreation gId@Nothing (Just uId) (Jsonb body)) = do
10521052 verifyUsers [uId]
1053− (Only mId) <- manipulateParams createMessageQ (selfId, gId, Just uId, body)
1053+ (Only mId) <- manipulateParams createMessageQ (selfId, gId, Just uId, Jsonb $ stripPostElement body)
10541054 >>= firstRow >>= fromMaybe500
10551055 return mId
10561056sendMessage _ _ = lift $ S.throwError S.err400