1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 00:47:00 +02:00

Flag improvements/tweaks (#18)

* Option to allow users to flag their own post
* Increase size of "Flag Post" modal
* Allow optional reason detail for offtopic, inappropriate and spam reasons
* For other reasons, detail text is now required
* Switch to column type "text" to allow more details in reason
This commit is contained in:
Ian Morland
2020-02-07 10:23:10 +00:00
committed by GitHub
parent e64ca03985
commit 4344f71d99
7 changed files with 101 additions and 7 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
$schema->table('flags', function (Blueprint $table) {
$table->text('reason_detail')->change();
});
},
'down' => function (Builder $schema) {
$schema->table('flags', function (Blueprint $table) {
$table->string(['reason_detail'])->change();
});
}
];