fedwiki / wiki-server

Federated Wiki client and server in Node.js
Other
153 stars 35 forks source link

Server generates recent changes page #100

Closed opn closed 9 years ago

opn commented 9 years ago

Taking a look at server - I see that it generates the [[Recent Pages]] json in response to a request from the client.

It would seem to me that all the necessary information is already available to the client to generate a Recent Pages page from the site map JSON - so the request is unnecessary? To check whether client and server are in sink we'd need to just check the sitemaps - not have the server render this page?

paul90 commented 9 years ago

The server serves up a recent-changes.json page - this contains an activity item.

The server does not render the contents of the activity plugin, this is done on the client using the code loaded from the activity plugin (using the sitemap data).