diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 2b9ad02..aba3e4e 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -62,7 +62,12 @@ class PostsController < ApplicationController @post.update_attributes(author: current_user.username) unless @post.author if @post.save - flash[:success] = @site.config.dig('thanks') + if @post.incomplete? + flash[:info] = @site.config.dig('incomplete') + else + flash[:success] = @site.config.dig('thanks') + end + redirect_to site_posts_path(@site, lang: @lang) else @invalid = true