Skip to content

Commit b9f7651

Browse files
authored
Policy update (#8020)
* Help page for content moderation * Updated policy * Adding routes for /help/content-moderation * update goldens
1 parent 28bc51a commit b9f7651

File tree

8 files changed

+302
-98
lines changed

8 files changed

+302
-98
lines changed

app/lib/frontend/handlers/misc.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ Future<shelf.Response> helpPageScoringHandler(shelf.Request request) async {
4646
return htmlResponse(renderHelpScoringPage());
4747
}
4848

49+
/// Handles requests for /help/content-moderation
50+
Future<shelf.Response> helpPageContentModerationHandler(
51+
shelf.Request request,
52+
) async {
53+
return htmlResponse(renderHelpContentModerationPage());
54+
}
55+
4956
/// Handles requests for /help/search
5057
Future<shelf.Response> helpPageSearchHandler(shelf.Request request) async {
5158
return htmlResponse(renderHelpSearchPage());

app/lib/frontend/handlers/routes.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ class PubSiteService {
276276
Future<Response> helpPageScoring(Request request) =>
277277
helpPageScoringHandler(request);
278278

279+
/// Renders the help page for scoring
280+
@Route.get('/help/content-moderation')
281+
Future<Response> helpPageContentModeration(Request request) =>
282+
helpPageContentModerationHandler(request);
283+
279284
/// Renders the help page for search
280285
@Route.get('/help/search')
281286
Future<Response> helpPageSearch(Request request) =>

app/lib/frontend/handlers/routes.g.dart

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/lib/frontend/templates/misc.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ final _helpMarkdown = _readDocContent('help.md');
3232
final _helpScoringMarkdown = _readDocContent('help-scoring.md');
3333
final _helpSearchMarkdown = _readDocContent('help-search.md');
3434
final _helpPublishingMarkdown = _readDocContent('help-publishing.md');
35+
final _helpContentModerationMarkdown = _readDocContent(
36+
'help-content-moderation.md',
37+
);
3538

3639
late final _sideImage = d.Image.decorative(
3740
src: static_files.staticUrls.packagesSideImage,
@@ -98,6 +101,19 @@ String renderHelpScoringPage() {
98101
);
99102
}
100103

104+
/// Renders the `doc/help-content-moderation.md`.
105+
String renderHelpContentModerationPage() {
106+
return renderLayoutPage(
107+
PageType.standalone,
108+
standalonePageNode(
109+
_helpContentModerationMarkdown,
110+
sideImage: _sideImage,
111+
),
112+
title: 'Content Moderation | Pub site',
113+
canonicalUrl: '/help/content-moderation',
114+
);
115+
}
116+
101117
/// Renders the `doc/help-search.md`.
102118
String renderHelpSearchPage() {
103119
return renderLayoutPage(

app/test/frontend/golden/help_page.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ <h1 class="hash-header" id="help">
133133
API for developers
134134
</a>
135135
</li>
136+
<li>
137+
<a href="/help/content-moderation">Content moderation</a>
138+
</li>
136139
</ul>
137140
<p>
138141
To report issues or bugs in a package, please use the
@@ -142,8 +145,8 @@ <h1 class="hash-header" id="help">
142145
<p>
143146
To report concerns over potential
144147
<a href="/policy">policy issues</a>
145-
, please send an email to
146-
<code>[email protected]</code>
148+
, please use the "Report package" link, see
149+
<a href="/help/content-moderation">content moderation</a>
147150
.
148151
</p>
149152
</div>

doc/help-content-moderation.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Overview of Our Policies and How We Enforce Them
2+
3+
Pub.dev is the official package repository for Dart and Flutter apps.
4+
We strive to support the publication of packages in a manner that is
5+
trustworthy, and works for our users.
6+
The [Pub.dev Policy][1] describes our policies around acceptable use of our
7+
services.
8+
These policies are designed to ensure a safe and positive experience for our
9+
users and abide by applicable laws.
10+
This Help article provides additional information on how we enforce these
11+
policies.
12+
13+
The Pub.dev Policy prohibits content that is harmful to our users or others
14+
(including name squatting, trademark and copyright infringement, and harmful or
15+
deceptive content).
16+
Please use the "Report package" link at the bottom of each package page to
17+
report illegal content and policy violations.
18+
19+
To ensure efficient review of your policy complaint, please provide the name,
20+
role and contact information of the person initiating the complaint,
21+
a description of and link to the material, and URLs and package names for all
22+
packages related to the complaint.
23+
We cannot take action on incomplete complaints.
24+
25+
Pub.dev moderators conduct human reviews of all reported content.
26+
When assessing content to determine whether it violates our policies, we take
27+
various information into consideration when making a decision,
28+
such as package information (including contents of package archives),
29+
publisher and account information (including past history of policy violations),
30+
and other information provided through reporting mechanisms.
31+
32+
We take action on content that violates our policies and is harmful to users
33+
and the overall pub.dev ecosystem.
34+
If your account or content are found to be in violation, we may:
35+
36+
* Remove or limit the visibility of the material
37+
* Temporarily or permanently suspend your access to pub.dev
38+
* Report illegal materials to appropriate law enforcement authorities
39+
40+
If content is removed or restricted from pub.dev, it is removed or
41+
restricted globally and indefinitely by default.
42+
Egregious violations of our policies may result in more significant enforcement
43+
repercussions, including but not limited to an immediate ban and escalation to
44+
law enforcement authorities.
45+
46+
## How to Appeal a Content Moderation Decision
47+
If you report content or an account, or your content or account was actioned
48+
against, you will receive a notification about the type of enforcement and
49+
the reasoning for any enforcement action taken.
50+
The notification will also contain a link to submit an appeal of our decision
51+
if you believe it was a mistake.
52+
Appeals may not be available in all circumstances
53+
(e.g., certain court ordered removals).
54+
55+
Appeals must be submitted within six months of the content moderation decision.
56+
When submitting an appeal, be sure to include sufficient facts and evidence
57+
necessary to show why our decision was in error.
58+
Appeals that do not include such information, and/or simply restate the facts
59+
and evidence stated in the initial report will be denied.
60+
We reserve the right to take action against users who abuse our appeals
61+
processes, including temporarily or permanently suspending a user’s ability to
62+
submit further appeals if that user makes claims that are spammy,
63+
use inappropriate language, or are otherwise manifestly unfounded.
64+
65+
Once we’ve reviewed your appeal, we’ll communicate the outcome to you.
66+
If we agree with your appeal, we’ll take appropriate action to reverse our
67+
prior decision.
68+
69+
If you’re covered by the European Union’s Digital Services Act (“DSA”),
70+
the option to refer your complaint to a certified out-of-court dispute
71+
settlement body may also be available to you.
72+
[Learn more about the European Union’s DSA][2].
73+
If you have legal questions or wish to examine other remedies that may be
74+
available to you, including the option of referring this matter to a court,
75+
you may wish to speak to your own lawyer.
76+
77+
[1]: /policy
78+
[2]: https://support.google.com/european-union-digital-services-act-redress-options

doc/help.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ The following help pages are available:
66
- [Publishing packages](/help/publishing)
77
- [Package scores & pub points](/help/scoring)
88
- [`pub.dev` API for developers](/help/api)
9+
- [Content moderation](/help/content-moderation)
910

1011
To report issues or bugs in a package, please use the
1112
**View/report issues** link on the individual package page.
1213

1314
To report concerns over potential [policy issues](/policy),
14-
please send an email to `[email protected]`.
15+
please use the "Report package" link, see [content moderation][1].
16+
17+
[1]: /help/content-moderation

0 commit comments

Comments
 (0)