Skip to content

Commit 12c9e96

Browse files
committed
Fix normalize_manifest!
1 parent b5b663f commit 12c9e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/util/util.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def self.manifest_to_searchable(manifest)
1212
([title] + annotation_texts).join(' ')
1313
end
1414

15-
def normalize_manifest!(manifest)
15+
def self.normalize_manifest!(manifest)
1616
manifest["annotations"].sort_by! do |a|
1717
[a["time"], a["position"]["x"], a["position"]["y"], a["text"],
18-
a["user"]["id"], a["user"]["uri"], a["user"]["name"]]
18+
a["author"]["id"], a["author"]["uri"], a["author"]["name"]]
1919
end
2020
end
2121

0 commit comments

Comments
 (0)