summaryrefslogtreecommitdiff
path: root/internal/listing
diff options
context:
space:
mode:
authormihna123 <mihailonvojinovic@gmail.com>2026-08-23 14:52:12 +0200
committermihna123 <mihailonvojinovic@gmail.com>2026-08-23 14:52:12 +0200
commita6ae2d9b9cb4f823d677beab11bd3d8610541f01 (patch)
treefdb3a122eeec95a01a9eae35cb152fd66da2c925 /internal/listing
parentcfaecd4cb276722ffe0efb23d2cf5b6a250728c2 (diff)
downloadopenstore-a6ae2d9b9cb4f823d677beab11bd3d8610541f01.tar.gz
openstore-a6ae2d9b9cb4f823d677beab11bd3d8610541f01.zip
listing: add isExternal and origin fields to listing struct
Need to have information where did the listing come from if it is external
Diffstat (limited to 'internal/listing')
-rw-r--r--internal/listing/listing.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/listing/listing.go b/internal/listing/listing.go
index cabd6bb..de769cc 100644
--- a/internal/listing/listing.go
+++ b/internal/listing/listing.go
@@ -1,6 +1,7 @@
package listing
import (
+ "net/url"
"time"
"codeberg.org/mihna123/openstore/internal/user"
@@ -43,4 +44,6 @@ type Listing struct {
views int
createdAt time.Time
author *user.User
+ isExternal bool
+ origin url.URL
}