File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ func FetchAndGenerateRSS(forumURL string) (string, error) {
8686 }
8787
8888 link := topicURL .String () // Full URL for the topic
89+ q := topicURL .Query ()
90+ q .Del ("sid" )
91+ topicURL .RawQuery = q .Encode ()
92+ guid := topicURL .String () // Full URL for the topic
8993
9094 // If the latest post exists, use that link instead
9195 if latestPostExists {
@@ -94,6 +98,10 @@ func FetchAndGenerateRSS(forumURL string) (string, error) {
9498 return
9599 }
96100 link = latestPostURL .String () // Full URL for the latest post
101+ q := latestPostURL .Query ()
102+ q .Del ("sid" )
103+ latestPostURL .RawQuery = q .Encode ()
104+ guid = latestPostURL .String () // Full URL for the topic
97105 }
98106
99107 pubDateRaw := strings .TrimSpace (s .Find (".postdetails" ).Last ().Text ())
@@ -118,7 +126,7 @@ func FetchAndGenerateRSS(forumURL string) (string, error) {
118126 Link : link ,
119127 Description : description ,
120128 PubDate : parsedDate .Format (time .RFC1123 ),
121- GUID : link ,
129+ GUID : guid ,
122130 })
123131 })
124132
You can’t perform that action at this time.
0 commit comments