Closed WardCunningham closed 2 years ago
Fork from history on the right hand page turns the left hand page to a ghost.
(Original suggestion by David Bovill)
Spotted a little problem in the test for turning pages ghost, site
is not an attribute but held in data - so this becomes $(p).data('site')
.
As we are only interested in turning any other copies of the forked page that are from the origin wiki, where the site field is either empty, null, view
, origin
, local
, or recycler
, so we just need to test if !$(p).data('site')
is one of those. No need to compare with $page.data('site')
as if we are forking from another site, at this stage that will still be the other wiki site's name.
Published as + wiki-client@0.23.5
First step in lineup reconciliation when forking from history. Here we update the url to remove the _rev suffix from the page that is now the current version.