forked from OpenNeo/impress
Emi Matchu
156cabbab4
Simple enough to start! If `shadowbanned: true` gets set on a user, then we show a 404 instead of the actual list page, *unless* you're logged in as that user, or coming from a known IP of that user. This isn't a very strong mechanism! Just something to hopefully increase the costs of messing around with list spam.
5 lines
159 B
Ruby
5 lines
159 B
Ruby
class AddShadowbannedToUsers < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_column :users, :shadowbanned, :boolean, default: false, null: false
|
|
end
|
|
end
|