From a6ae2d9b9cb4f823d677beab11bd3d8610541f01 Mon Sep 17 00:00:00 2001 From: mihna123 Date: Sun, 23 Aug 2026 14:52:12 +0200 Subject: listing: add isExternal and origin fields to listing struct Need to have information where did the listing come from if it is external --- internal/listing/listing.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/listing') 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 } -- cgit v1.3.1