before_action :check_database_writable, :only => [:new, :edit, :comment, :hide, :hidecomment, :subscribe, :unsubscribe]
before_action :allow_thirdparty_images, :only => [:new, :edit, :list, :view, :comments]
-
def new
@title = t "diary_entry.new.title"
params.require(:diary_comment).permit(:body)
end
-
##
# decide on a location for the diary entry map
def set_map_location