Adds delete by IP excluded IP array, and config to exclude threads from delete by IP #71

Open
nonmakina wants to merge 2 commits from block_mass_delete_threads into config
Collaborator

Before deploying, this needs to be added to inc/instance-config.php:


//  Exclude these IPs from "delete by IP", meaning clicking D+ or D++ won't affect these IPs.
$config['deletebyip_excluded_ips'] = array("127.0.0.1", "127.0.0.2");

// If true, D+ and D++ won't affect threads. This means threads will need to  be deleted manually (using D).
$config['deletebyip_exclude_threads'] = true;

In this section:


/*
 * Permissions
 */
//  Exclude these IPs from "delete by IP", meaning clicking D+ or D++ won't affect these IPs.
$config['deletebyip_excluded_ips'] = array("127.0.0.1", "127.0.0.2");

// If true, D+ and D++ won't affect threads. This means threads will need to  be deleted manually (using D).
$config['deletebyip_exclude_threads'] = true;

$config['mod']['move'] = MOD;
$config['mod']['editpost'] = MOD;
// Raw HTML posting
Before deploying, this needs to be added to `inc/instance-config.php`: ``` // Exclude these IPs from "delete by IP", meaning clicking D+ or D++ won't affect these IPs. $config['deletebyip_excluded_ips'] = array("127.0.0.1", "127.0.0.2"); // If true, D+ and D++ won't affect threads. This means threads will need to be deleted manually (using D). $config['deletebyip_exclude_threads'] = true; ``` In this section: ``` /* * Permissions */ // Exclude these IPs from "delete by IP", meaning clicking D+ or D++ won't affect these IPs. $config['deletebyip_excluded_ips'] = array("127.0.0.1", "127.0.0.2"); // If true, D+ and D++ won't affect threads. This means threads will need to be deleted manually (using D). $config['deletebyip_exclude_threads'] = true; $config['mod']['move'] = MOD; $config['mod']['editpost'] = MOD; // Raw HTML posting ```
nonmakina added 1 commit 2 years ago
nonmakina added 1 commit 2 years ago
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.