How to override the default vote source

Created on 23 January 2017, about 8 years ago
Updated 22 September 2024, 7 months ago

Problem/Motivation

The data stored for each vote are described in API.txt, including

vote_source -- A unique identifier used to distinguish votes cast by anonymous users. By default, this is the IP address of the remote machine.

I think that further documentation is needed to explain how to override this default.

Many sites have a policy against logging IP addresses, so they will need some other method for identifying anonymous users.

Proposed resolution

For now, treat this as a documentation issue. It is possible to override the default, and we just need to explain how.

It might be worth making code changes so that it is easier for site builders to change how votes are tracked.

Remaining tasks

In the comments below, I will provide draft documentation. Should this be added to API.txt or README.txt or somewhere else?

User interface changes

None (assuming that this stays a documentation issue).

API changes

None (assuming that this stays a documentation issue).

Data model changes

None.

✨ Feature request
Status

Active

Version

4.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States benjifisher Boston area

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024