summaryrefslogtreecommitdiff
path: root/internal/typeutils
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-06-24 09:04:27 +0000
committerLibravatar GitHub <noreply@github.com>2024-06-24 09:04:27 +0000
commit03c5d016a7d3cee48fece16c3424dc40b71fb9e5 (patch)
treeaf2ee15b42dfd014166ac7d4637691ccc30b062e /internal/typeutils
parent[docs] fix: traefik redirect regex (#3032) (diff)
downloadgotosocial-03c5d016a7d3cee48fece16c3424dc40b71fb9e5.tar.xz
[chore]: Bump github.com/gorilla/feeds from 1.1.2 to 1.2.0 (#3035)
Diffstat (limited to 'internal/typeutils')
-rw-r--r--internal/typeutils/internaltorss.go1
-rw-r--r--internal/typeutils/internaltorss_test.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/typeutils/internaltorss.go b/internal/typeutils/internaltorss.go
index e1174caf6..4f4b2b93a 100644
--- a/internal/typeutils/internaltorss.go
+++ b/internal/typeutils/internaltorss.go
@@ -160,6 +160,7 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f
Source: source,
Description: description,
Id: id,
+ IsPermaLink: "true",
Updated: s.UpdatedAt,
Created: s.CreatedAt,
Enclosure: enclosure,
diff --git a/internal/typeutils/internaltorss_test.go b/internal/typeutils/internaltorss_test.go
index 305015d28..e9848b806 100644
--- a/internal/typeutils/internaltorss_test.go
+++ b/internal/typeutils/internaltorss_test.go
@@ -130,6 +130,7 @@ func (suite *InternalToRSSTestSuite) TestStatusToRSSItem3() {
</Author>
<Description>@admin@localhost:8080 made a new post</Description>
<Id>http://localhost:8080/@admin/statuses/01H7G0VW1ACBZTRHN6RSA4JWVH</Id>
+ <IsPermaLink>true</IsPermaLink>
<Updated>0001-01-01T00:00:00Z</Updated>
<Created>0001-01-01T00:00:00Z</Created>
<Enclosure>