3 Commits

3 changed files with 14 additions and 5 deletions
+4 -4
View File
@@ -247,7 +247,7 @@ func NewTopic(ctxt ui.AmContext) (string, any) {
if err != nil { if err != nil {
return "error", err return "error", err
} }
checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.URLParam("cid"), conf.TopTopic+1)) checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.GetScratch("currentAlias").(string), conf.TopTopic+1))
checker.Append(postdata) checker.Append(postdata)
checker.Finish() checker.Finish()
v, _ = checker.Value() v, _ = checker.Value()
@@ -282,7 +282,7 @@ func NewTopic(ctxt ui.AmContext) (string, any) {
if err != nil { if err != nil {
return "error", err return "error", err
} }
checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.URLParam("cid"), conf.TopTopic+1)) checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.GetScratch("currentAlias").(string), conf.TopTopic+1))
checker.Append(ctxt.FormField("pb")) checker.Append(ctxt.FormField("pb"))
checker.Finish() checker.Finish()
zeroPost, _ := checker.Value() zeroPost, _ := checker.Value()
@@ -734,7 +734,7 @@ func PostInTopic(ctxt ui.AmContext) (string, any) {
if err != nil { if err != nil {
return "error", err return "error", err
} }
checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.URLParam("cid"), topic.Number)) checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.GetScratch("currentAlias").(string), topic.Number))
checker.Append(postdata) checker.Append(postdata)
checker.Finish() checker.Finish()
v, _ = checker.Value() v, _ = checker.Value()
@@ -805,7 +805,7 @@ func PostInTopic(ctxt ui.AmContext) (string, any) {
if err != nil { if err != nil {
return "error", err return "error", err
} }
checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.URLParam("cid"), topic.Number)) checker.SetContext("PostLinkDecoderContext", database.AmCreatePostLinkContext(comm.Alias, ctxt.GetScratch("currentAlias").(string), topic.Number))
checker.Append(ctxt.FormField("pb")) checker.Append(ctxt.FormField("pb"))
checker.Finish() checker.Finish()
postText, _ := checker.Value() postText, _ := checker.Value()
+1 -1
View File
@@ -30,7 +30,7 @@ import (
) )
// AMSTERDAM_VERSION contains the version number of Amsterdam. // AMSTERDAM_VERSION contains the version number of Amsterdam.
const AMSTERDAM_VERSION = "0.1.0" const AMSTERDAM_VERSION = "0.1.1"
// AMSTERDAM_COPYRIGHT contains the copyright dates for Amsterdam. // AMSTERDAM_COPYRIGHT contains the copyright dates for Amsterdam.
const AMSTERDAM_COPYRIGHT = "2025-2026" const AMSTERDAM_COPYRIGHT = "2025-2026"
+9
View File
@@ -0,0 +1,9 @@
# Changelog
## Release 0.1.1 - April 11, 2020
* Fixed a bug in post link resolution at post time which was causing the conference alias to be set incorrectly (issue #3).
## Release 0.1.0 - April 6, 2026
* Implemented all functionality from the last known version of the Venice Web Communities System, circa 2006.