update i18n stuff

This commit is contained in:
Jeff Becker
2017-10-10 12:34:39 -04:00
parent e25b84c686
commit 0848412aa0
7 changed files with 22 additions and 18 deletions
@@ -486,7 +486,11 @@ func (self *post) Attachments() []AttachmentModel {
}
func (self *post) PostURL() string {
return fmt.Sprintf("%st/%s/#%s", self.Prefix(), HashMessageID(self.Parent), self.PostHash())
i18n := self._i18n
if i18n == nil {
i18n = I18nProvider
}
return fmt.Sprintf("%st/%s/?lang=%s#%s", self.Prefix(), HashMessageID(self.Parent), i18n.Name, self.PostHash())
}
func (self *post) Prefix() string {