Skip to content

Use local emoji data instead of loading it through the CDN #11082

@ahukkanen

Description

@ahukkanen

Describe the bug

We updated the emoji picker to Picmo because the old picker was unmaintained.

While reviewing a PR (#11079) I noticed that the emoji data is loaded through a CDN (cdn.jsdelivr.net).

This might be problematic for privacy reasons.

To Reproduce

  1. Go to a view which has comments (e.g. a proposal)
  2. Inspect the network traffic in the browser's developer console
  3. See that requests are made to the CDN

Expected behavior

The emoji picker should not make any requests to external domains.

Here are details how we can avoid the CDN requests:
https://picmojs.com/docs/usage/emoji-data/#provided-static-data

Note that the downside of this approach is that the JS build size will increase but it improves the platform privacy.

Screenshots

No response

Stacktrace

No response

Extra data

  • Device:
  • Device OS:
  • Browser:
  • Decidim Version: develop
  • Decidim installation:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions