Mark pinned documents

doc.pinned = !!pin ?