Added better id in feed item.

In node recent changes, return only the published entries.
This commit is contained in:
Jocelyn Fiat
2017-09-06 12:45:42 +02:00
parent 69894e8397
commit 0c119b6b5a
4 changed files with 24 additions and 4 deletions

View File

@@ -312,6 +312,7 @@ feature -- Hooks
if l_node_api.has_permission_for_action_on_node ("view", n, a_current_user) then
n := l_node_api.full_node (n)
create ch.make (n.content_type, create {CMS_LOCAL_LINK}.make (n.title, "node/" + n.id.out), n.modification_date)
ch.set_id (n.content_type + ":id" + n.id.out + "-rev" + n.revision.out)
if n.creation_date ~ n.modification_date then
l_info := "new"
if not n.is_published then