diff --git a/lib/go/camli/search/handler.go b/lib/go/camli/search/handler.go index d46625cc1..c7a0d639a 100644 --- a/lib/go/camli/search/handler.go +++ b/lib/go/camli/search/handler.go @@ -298,10 +298,6 @@ func (sh *searchHandler) populatePermanodeFields(jm map[string]interface{}, pn, attr[cl.Attr] = append(sl, cl.Value) } } - if sl, ok := attr["camliContent"].([]string); ok && len(sl) > 0 { - jm["content"] = sl[len(sl)-1] - attr["camliContent"] = nil, false - } } // If the content permanode is now known, look up its type diff --git a/server/go/camlistored/ui/permanode.js b/server/go/camlistored/ui/permanode.js index e31383b2f..599edf17e 100644 --- a/server/go/camlistored/ui/permanode.js +++ b/server/go/camlistored/ui/permanode.js @@ -165,7 +165,7 @@ function startFileUpload(file) { }; var addMember = function() { setStatus("adding member"); - camliNewAddAttributeClaim(getPermanodeParam(), "member", filepn, { success: doneWithAll, fail: onFail }); + camliNewAddAttributeClaim(getPermanodeParam(), "camliMember", filepn, { success: doneWithAll, fail: onFail }); }; var makePermanode = function() { setStatus("making permanode"); @@ -270,7 +270,7 @@ window.addEventListener("load", function (e) { var membersDiv = document.getElementById("members"); membersDiv.innerHTML = ""; - var members = permanodeObject.attr.member; + var members = permanodeObject.attr.camliMember; if (members && members.length > 0) { var membersUl = document.createElement("ul"); for (idx in members) {