Problem/Motivation

When trying to check whether a user is a patron of a Patreon, the module attempts to compare the patron's subscription from an API response with a creator ID.

However, the item being compared was originally relationships.creator.id which does not seem to be a valid property returned by the API.

Proposed resolution

Instead, return relationships.creator.data which is a ResourceIdentifier, and use the get() method to resolve its value.

Remaining tasks

Review and commit.

User interface changes

None.

API changes

None.

CommentFileSizeAuthor
patreon-creator_id-isPatron.patch782 bytestorgospizza

Comments

torgosPizza created an issue. See original summary.

torgospizza’s picture

Issue summary: View changes

Typo

mrdalesmith’s picture

I've committed this change to the dev version of 7.2 so that it can be reviewed and tested. Thanks for the patch.

mrdalesmith’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.