Skip to content

Commit 30a676e

Browse files
authored
Merge pull request #341 from per1234/sockpuppet-flag-instructions
Add instructions re: "flag_sockpuppets" flag to Moderator Instructions
2 parents 3d8ebb6 + e17425e commit 30a676e

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

.github/workflows/check-toc-task.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
if: needs.run-determination.outputs.result == 'true'
5757
runs-on: ubuntu-latest
5858

59+
env:
60+
ARTIFACT_NAME: corrected-files
61+
5962
strategy:
6063
fail-fast: false
6164

@@ -86,4 +89,32 @@ jobs:
8689
MAX_DEPTH=${{ matrix.file.maxdepth }}
8790
8891
- name: Check ToC
92+
id: check-toc
8993
run: git diff --color --exit-code
94+
95+
- name: Upload corrected file to workflow artifact
96+
if: failure() && steps.check-toc.outcome == 'failure'
97+
uses: actions/upload-artifact@v3
98+
with:
99+
if-no-files-found: error
100+
name: ${{ env.ARTIFACT_NAME }}
101+
# Globstar prefix is to preserve folder structure in artifact.
102+
# https://github.com/actions/upload-artifact/tree/v3.1.2#:~:text=path%20hierarchy%20will%20be%20preserved
103+
path: "**/${{ matrix.file.name }}"
104+
105+
- name: Add artifact availability notice
106+
if: failure() && steps.check-toc.outcome == 'failure'
107+
run: |
108+
echo "::notice file=${{ matrix.file.name }}::Corrected file was saved to the ${{ env.ARTIFACT_NAME }} workflow artifact"
109+
110+
- name: Resolution instructions
111+
if: failure() && steps.check-toc.outcome == 'failure'
112+
run: |
113+
echo "Table of contents can be updated by running the following command from the root of the repository:"
114+
echo "task markdown:toc FILE_PATH=${{ matrix.file.name }} MAX_DEPTH=${{ matrix.file.maxdepth }}"
115+
echo
116+
echo "- OR -"
117+
echo
118+
echo "Download the ${{ env.ARTIFACT_NAME }} workflow artifact and replace ${{ matrix.file.name }} with the"
119+
echo "corrected file from the artifact."
120+
echo "See: https://docs.github.com/actions/managing-workflow-runs/downloading-workflow-artifacts"

Taskfile.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ tasks:
2020
- task: general:correct-spelling
2121
- task: general:format-prettier
2222
- task: markdown:fix
23-
- task: markdown:toc
2423

2524
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-workflows-task/Taskfile.yml
2625
ci:validate:

content/categories/staff/moderation/_topics/moderator-instructions/1.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ For an overview of the Discourse moderation system, see the **[Discourse Moderat
2323
- ["Needs Approval" flag for account](#needs-approval-flag-for-account)
2424
- ["Needs Approval" flag for post](#needs-approval-flag-for-post)
2525
- [Akismet flagged post](#akismet-flagged-post)
26+
- ["flag_sockpuppets" flag](#flag_sockpuppets-flag)
2627
- [Guides](#guides)
2728
- [Deal with inappropriate behavior](#deal-with-inappropriate-behavior)
2829
- [Delete spam](#delete-spam)
@@ -209,6 +210,37 @@ This flag is created by `@system` when a post is detected as possibly spam by [A
209210

210211
---
211212

213+
<a name="sockpuppets-flag"></a>
214+
215+
#### ["flag_sockpuppets" flag](#sockpuppets-flag)
216+
217+
This flag is created by `@system` when a new user created a topic, and another new user at the same IP address replied. The flagged post must be reviewed by a moderator.
218+
219+
---
220+
221+
⚠ Legitimate users may happen to be assigned the same IP address. Be sure to carefully evaluate the flagged posts and user accounts before taking any administrative action.
222+
223+
---
224+
225+
<a name="if-the-post-is-benign-2"></a>
226+
227+
##### [If the post is benign](#if-the-post-is-benign-2)
228+
229+
1. Click the **<kbd>No, restore post</kbd>** button.
230+
231+
<a name="if-the-post-is-malicious-2"></a>
232+
233+
##### [If the post is malicious](#if-the-post-is-malicious-2)
234+
235+
1. Click the **<kbd>Yes ▾</kbd>** button.
236+
1. From the dropdown menu, click **Suspend User**. The **"Suspend User"** dialog will open.
237+
1. From the **Select a timeframe** dropdown menu, select **Forever**.
238+
1. In the **Suspension Reason** text field, enter "malicious use of multiple accounts".
239+
1. From the **"What would you like to do with the associated post?"** dropdown menu, select **Delete the post**.
240+
1. Click the **<kbd>:no_entry_sign: Suspend</kbd>** button.
241+
242+
---
243+
212244
<a name="guides"></a>
213245

214246
## [Guides](#guides)

0 commit comments

Comments
 (0)