Skip to content

Commit 26f9d1b

Browse files
authored
Add link to form for revenge porn reporting, remove fields (#8857)
1 parent 2a80188 commit 26f9d1b

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/NuGetGallery/App_Data/Files/Content/flags.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"NuGetGallery.PatternSetTfmHeuristics": "Enabled",
3030
"NuGetGallery.EmbeddedIcons": "Enabled",
3131
"NuGetGallery.MarkdigMdRendering": "Enabled",
32-
"NuGetGallery.ImageAllowlist": "Enabled"
32+
"NuGetGallery.ImageAllowlist": "Enabled",
33+
"NuGetGallery.ShowReportAbuseSafetyChanges": "Enabled"
3334
},
3435
"Flights": {
3536
"NuGetGallery.TyposquattingFlight": {

src/NuGetGallery/Views/Packages/ReportAbuse.cshtml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
If this is not a Microsoft - owned package, consider also <a href="@Url.ContactOwners(Model)" title="contact the owners">contacting the owners</a>.
7272
</p>
7373
</div>
74+
<div class="reason-error-revenge-porn" tabindex="0">
75+
<p>
76+
Please report this safety violation through the <a href="https://www.microsoft.com/en-us/concern/revengeporn" title="revenge porn portal">official portal</a>.
77+
</p>
78+
</div>
7479
<div id="report-abuse-form">
7580
<div class="form-group @Html.HasErrorFor(m => m.Email)">
7681
@Html.ShowLabelFor(m => m.Email)
@@ -155,7 +160,8 @@
155160
156161
// For error conditions, hide the other form fields and show error messages
157162
if (val === 'HasABugOrFailedToInstall'
158-
|| val === 'ContainsSecurityVulnerability') {
163+
|| val === 'ContainsSecurityVulnerability'
164+
|| val === 'RevengePorn') {
159165
$('#report-abuse-form').hide();
160166
} else {
161167
$('#report-abuse-form').show();
@@ -173,6 +179,12 @@
173179
$form.find('.reason-error-security-vulnerability').hide();
174180
}
175181
182+
if (val === 'RevengePorn') {
183+
$form.find('.reason-error-revenge-porn').show();
184+
} else {
185+
$form.find('.reason-error-revenge-porn').hide();
186+
}
187+
176188
// We don't suggest the customer contact the owner in the case of safety violations
177189
if (val === 'ChildSexualExploitationOrAbuse'
178190
|| val === 'TerrorismOrViolentExtremism'

0 commit comments

Comments
 (0)