The like count and like icon don't update when a single map is opened from a share link

When you follow a share link to a published map and click the "like", the heart icon does not change to a filled version and the counter next to it does not update.

The POST request to api/scenes/:mapId/liked goes through, and the "likeCount" and "isLikedByMe" in the response body are correct. Refreshing shows the correct icon and count.

After some experimentation, it seems that this only happens when I open a share link. For instance, if I go to https://inkarnate.com/m/6701yE-deep-jungle-40x40/ The button does not work, but if I go to the profile and navigate back to https://inkarnate.com/p/XZjOVe-cropox-battlemaps/maps/6701yE-deep-jungle-40x40/ (which is a different url) the button works.

So, reproduction steps:

  1. Open a share link, of the form inkarnate.com/m/{map-slug}/

  2. Click the "Like" button

Expected: the like button and counter change accordingly

Actual: Like button counter remain the same

Please authenticate to join the conversation.

Upvoters
Status

Registered

Board

Bugs

Tags

App

Date

Over 2 years ago

Author

Haemocyte

Subscribe to post

Get notified by email when there are changes.