File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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 )
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 ();
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'
You can’t perform that action at this time.
0 commit comments