Fixed Shared Albums with "People you follow": Alert every time when additional user is followed.

Freelancer

Well-known member
Affected version
1.1.14
Scenario:
  1. User "Karl" shares an album with his "People you follow".
  2. The people Karl follows receive an alert "Karl has shared the album XYZ with you."
  3. Now, the people Karl follows receive the above alert again – every time Karl follows an additional user.
 
This is fixed for the next release. As there's no particular ETA for the next release, I'll include the changes below (it's fairly simple).

Open file library/XenGallery/DataWriter/AlbumPermission.php.

Find:
PHP:
$newUsers[$key] = intval($shareUser);

Replace with:
PHP:
$newUsers[$key] = $key;
 
Top Bottom