Skip to content

Commit

Permalink
Policy update (#8020)
Browse files Browse the repository at this point in the history
* Help page for content moderation

* Updated policy

* Adding routes for /help/content-moderation

* update goldens
  • Loading branch information
jonasfj committed Sep 5, 2024
1 parent 28bc51a commit b9f7651
Show file tree
Hide file tree
Showing 8 changed files with 302 additions and 98 deletions.
7 changes: 7 additions & 0 deletions app/lib/frontend/handlers/misc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ Future<shelf.Response> helpPageScoringHandler(shelf.Request request) async {
return htmlResponse(renderHelpScoringPage());
}

/// Handles requests for /help/content-moderation
Future<shelf.Response> helpPageContentModerationHandler(
shelf.Request request,
) async {
return htmlResponse(renderHelpContentModerationPage());
}

/// Handles requests for /help/search
Future<shelf.Response> helpPageSearchHandler(shelf.Request request) async {
return htmlResponse(renderHelpSearchPage());
Expand Down
5 changes: 5 additions & 0 deletions app/lib/frontend/handlers/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ class PubSiteService {
Future<Response> helpPageScoring(Request request) =>
helpPageScoringHandler(request);

/// Renders the help page for scoring
@Route.get('/help/content-moderation')
Future<Response> helpPageContentModeration(Request request) =>
helpPageContentModerationHandler(request);

/// Renders the help page for search
@Route.get('/help/search')
Future<Response> helpPageSearch(Request request) =>
Expand Down
5 changes: 5 additions & 0 deletions app/lib/frontend/handlers/routes.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions app/lib/frontend/templates/misc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ final _helpMarkdown = _readDocContent('help.md');
final _helpScoringMarkdown = _readDocContent('help-scoring.md');
final _helpSearchMarkdown = _readDocContent('help-search.md');
final _helpPublishingMarkdown = _readDocContent('help-publishing.md');
final _helpContentModerationMarkdown = _readDocContent(
'help-content-moderation.md',
);

late final _sideImage = d.Image.decorative(
src: static_files.staticUrls.packagesSideImage,
Expand Down Expand Up @@ -98,6 +101,19 @@ String renderHelpScoringPage() {
);
}

/// Renders the `doc/help-content-moderation.md`.
String renderHelpContentModerationPage() {
return renderLayoutPage(
PageType.standalone,
standalonePageNode(
_helpContentModerationMarkdown,
sideImage: _sideImage,
),
title: 'Content Moderation | Pub site',
canonicalUrl: '/help/content-moderation',
);
}

/// Renders the `doc/help-search.md`.
String renderHelpSearchPage() {
return renderLayoutPage(
Expand Down
7 changes: 5 additions & 2 deletions app/test/frontend/golden/help_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ <h1 class="hash-header" id="help">
API for developers
</a>
</li>
<li>
<a href="/help/content-moderation">Content moderation</a>
</li>
</ul>
<p>
To report issues or bugs in a package, please use the
Expand All @@ -142,8 +145,8 @@ <h1 class="hash-header" id="help">
<p>
To report concerns over potential
<a href="/policy">policy issues</a>
, please send an email to
<code>support@pub.dev</code>
, please use the "Report package" link, see
<a href="/help/content-moderation">content moderation</a>
.
</p>
</div>
Expand Down
78 changes: 78 additions & 0 deletions doc/help-content-moderation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Overview of Our Policies and How We Enforce Them

Pub.dev is the official package repository for Dart and Flutter apps.
We strive to support the publication of packages in a manner that is
trustworthy, and works for our users.
The [Pub.dev Policy][1] describes our policies around acceptable use of our
services.
These policies are designed to ensure a safe and positive experience for our
users and abide by applicable laws.
This Help article provides additional information on how we enforce these
policies.

The Pub.dev Policy prohibits content that is harmful to our users or others
(including name squatting, trademark and copyright infringement, and harmful or
deceptive content).
Please use the "Report package" link at the bottom of each package page to
report illegal content and policy violations.

To ensure efficient review of your policy complaint, please provide the name,
role and contact information of the person initiating the complaint,
a description of and link to the material, and URLs and package names for all
packages related to the complaint.
We cannot take action on incomplete complaints.

Pub.dev moderators conduct human reviews of all reported content.
When assessing content to determine whether it violates our policies, we take
various information into consideration when making a decision,
such as package information (including contents of package archives),
publisher and account information (including past history of policy violations),
and other information provided through reporting mechanisms.

We take action on content that violates our policies and is harmful to users
and the overall pub.dev ecosystem.
If your account or content are found to be in violation, we may:

* Remove or limit the visibility of the material
* Temporarily or permanently suspend your access to pub.dev
* Report illegal materials to appropriate law enforcement authorities

If content is removed or restricted from pub.dev, it is removed or
restricted globally and indefinitely by default.
Egregious violations of our policies may result in more significant enforcement
repercussions, including but not limited to an immediate ban and escalation to
law enforcement authorities.

## How to Appeal a Content Moderation Decision
If you report content or an account, or your content or account was actioned
against, you will receive a notification about the type of enforcement and
the reasoning for any enforcement action taken.
The notification will also contain a link to submit an appeal of our decision
if you believe it was a mistake.
Appeals may not be available in all circumstances
(e.g., certain court ordered removals).

Appeals must be submitted within six months of the content moderation decision.
When submitting an appeal, be sure to include sufficient facts and evidence
necessary to show why our decision was in error.
Appeals that do not include such information, and/or simply restate the facts
and evidence stated in the initial report will be denied.
We reserve the right to take action against users who abuse our appeals
processes, including temporarily or permanently suspending a user’s ability to
submit further appeals if that user makes claims that are spammy,
use inappropriate language, or are otherwise manifestly unfounded.

Once we’ve reviewed your appeal, we’ll communicate the outcome to you.
If we agree with your appeal, we’ll take appropriate action to reverse our
prior decision.

If you’re covered by the European Union’s Digital Services Act (“DSA”),
the option to refer your complaint to a certified out-of-court dispute
settlement body may also be available to you.
[Learn more about the European Union’s DSA][2].
If you have legal questions or wish to examine other remedies that may be
available to you, including the option of referring this matter to a court,
you may wish to speak to your own lawyer.

[1]: /policy
[2]: https://support.google.com/european-union-digital-services-act-redress-options
5 changes: 4 additions & 1 deletion doc/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ The following help pages are available:
- [Publishing packages](/help/publishing)
- [Package scores & pub points](/help/scoring)
- [`pub.dev` API for developers](/help/api)
- [Content moderation](/help/content-moderation)

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

To report concerns over potential [policy issues](/policy),
please send an email to `support@pub.dev`.
please use the "Report package" link, see [content moderation][1].

[1]: /help/content-moderation
Loading

0 comments on commit b9f7651

Please sign in to comment.