-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure duplicate links are retained in array/hash
When a document is part of an array/hash (such as Mainstream documents), we were still calling `.uniq` after going through each item. This meant that documents such as Answers, Guides etc weren’t getting the correct metadata, as any duplicate links were getting thrown away. To get around this, we call `.uniq` BEFORE calling `.flatten`. This ensures that we retain the number of instances without double counting for multipart content.
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters