From e963aeb208b4f81a11574a036a209d54bd88b1c1 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 22 Oct 2022 16:35:10 +0000 Subject: [PATCH] Make rss/atom identifier globally unique This field should be globally unique. [RSS reference](https://www.rssboard.org/rss-specification#ltguidgtSubelementOfLtitemgt). Signed-off-by: Yarden Shoham --- routers/web/feed/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/feed/convert.go b/routers/web/feed/convert.go index 645d9370d5e1e..306ecf7d6a3ff 100644 --- a/routers/web/feed/convert.go +++ b/routers/web/feed/convert.go @@ -241,7 +241,7 @@ func feedActionsToFeedItems(ctx *context.Context, actions activities_model.Actio Name: act.ActUser.DisplayName(), Email: act.ActUser.GetEmail(), }, - Id: strconv.FormatInt(act.ID, 10), + Id: fmt.Sprintf("%v: %v", strconv.FormatInt(act.ID, 10), link.Href), Created: act.CreatedUnix.AsTime(), Content: content, })