Reportable is a feature that allows Decidim resources to be reported by users.
A resource can be reported by a user as 'spam', 'offensive' or 'does_not_belong'.
When a resource is reported, a
Report is created.
Reports of a resource are grouped in a
Moderation and can be moderated by the admins.
Reportable is expected to implement:
reported_content_url: the URL for the reportable resource;
reported_attributes: a list of attributes that can be reported (e.g.
[:title, :body]) - used to display the report content by the
reported_searchable_content_extras(optional): a list of attributes other than
reported_attributesthe report can be search by (e.g.
[author.name]) - used in the reports search bar of the admin panel.
The reccomended way to render the content of a
Reportable is with a
By default, this will render the generic
You can also customize the template for your
Reportable by extending