diff --git a/.env b/.env index 08f7601dc..2c7731b6b 100644 --- a/.env +++ b/.env @@ -35,7 +35,7 @@ # Put these in .env.production or .env.development to define your dev/prod # databases. Do not define it in .env or .env.local! It will be taken as your # test database too, and rails will wipe it if you run the test suite. -# +# # If you are connecting to PostgreSQL via socket, omit the hostname (e.g. # postgresql:///danbooru2) # export DATABASE_URL="postgresql://localhost/danbooru2" diff --git a/LICENSE b/LICENSE index e090d82d2..c2f0eac0b 100644 --- a/LICENSE +++ b/LICENSE @@ -2,13 +2,13 @@ Copyright (c) 2013, Danbooru Project All rights reserved. Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: +modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. + list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. + and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED @@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The views and conclusions contained in the software and documentation are those -of the authors and should not be interpreted as representing official policies, +of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project. diff --git a/README.md b/README.md index b6834fdff..9eb9c9540 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ simple to adapt for other platforms. For best performance, you will need at least 256MB of RAM for PostgreSQL and Rails. The memory requirement will grow as your -database gets bigger. +database gets bigger. On production Danbooru uses PostgreSQL 9.4, but any 9.x release should work. @@ -41,7 +41,7 @@ debug your Nginx configuration file. ## Services -Danbooru employs numerous external services to delegate some +Danbooru employs numerous external services to delegate some functionality. For development purposes, you can just run mocked version of these @@ -50,7 +50,7 @@ automatically using Foreman and the provided Procfile. ### Amazon Web Services -In order to enable the following features, you will need an AWS SQS +In order to enable the following features, you will need an AWS SQS account: * Pool versions @@ -68,11 +68,11 @@ The following features requires a Google API account: ### IQDB Service -IQDB integration is delegated to the [IQDBS service](https://github.com/r888888888/iqdbs). +IQDB integration is delegated to the [IQDBS service](https://github.com/r888888888/iqdbs). ### Archive Service -In order to access versioned data for pools and posts you will +In order to access versioned data for pools and posts you will need to install and configure the [Archives service](https://github.com/r888888888/archives). ### Reportbooru Service diff --git a/app/views/comments/partials/show/_comment.html.erb b/app/views/comments/partials/show/_comment.html.erb index 0dea551d8..b3b52b712 100644 --- a/app/views/comments/partials/show/_comment.html.erb +++ b/app/views/comments/partials/show/_comment.html.erb @@ -30,7 +30,7 @@ <%= format_text(comment.body, data: dtext_data) %> <%= render "application/update_notice", record: comment %> - + <% if policy(comment).create? %>