diff options
Diffstat (limited to 'db/rest/post/api_post_insert.sql')
-rw-r--r-- | db/rest/post/api_post_insert.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/rest/post/api_post_insert.sql b/db/rest/post/api_post_insert.sql index 02b9d8d..8b2eb48 100644 --- a/db/rest/post/api_post_insert.sql +++ b/db/rest/post/api_post_insert.sql @@ -7,6 +7,8 @@ DECLARE BEGIN _user_id = _api.get_user_id(); + NEW.content := _api.trim(NEW.content); + PERFORM _api.validate_text( _text => NEW.content, _column => 'content', |