Doesn't work with custom vote sources

Created on 24 March 2023, almost 2 years ago

Problem/Motivation

In Allow multiple votes from anonymous users on a shared IP address Needs review , we're working on adding different options for differentiating anonymous users. The problem is that currently, the rate widget hardcodes the current client IP as vote source.

Steps to reproduce

Add the patch from Allow multiple votes from anonymous users on a shared IP address Needs review and choose an option other than 'One vote per IP'.

Proposed resolution

Use $vote->getSource() instead of hardcoding the client IP logic. This is a backwards compatible change, it will work with and without the patch from Allow multiple votes from anonymous users on a shared IP address Needs review .

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024