Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Don't change user bookmarks when site title changes
Browse files Browse the repository at this point in the history
Fix #2209

Auditors: @aekeus
  • Loading branch information
bbondy committed Jun 23, 2016
1 parent e44d45e commit 88b6587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/state/siteUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ module.exports.addSite = function (sites, siteDetail, tag, originalSiteDetail) {
lastAccessedTime: siteDetail.get('lastAccessedTime') || new Date().getTime(),
tags,
location: siteDetail.get('location'),
title: siteDetail.get('title')
// We don't want bookmarks and other site info being renamed on users if they already exist
// The name should remain the same while it is bookmarked forever.
title: oldSite && tags.includes(siteTags.BOOKMARK) ? oldSite.get('title') : siteDetail.get('title')
})
if (folderId) {
site = site.set('folderId', Number(folderId))
Expand Down

1 comment on commit 88b6587

@aekeus
Copy link
Member

@aekeus aekeus commented on 88b6587 Jun 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.