update short id switch
This commit is contained in:
@@ -286,6 +286,8 @@ func (s *SiteInfoService) SaveSeo(ctx context.Context, req schema.SiteSeoReq) (e
|
||||
}
|
||||
if req.PermaLink == schema.PermaLinkQuestionIDAndTitleByShortID || req.PermaLink == schema.PermaLinkQuestionIDByShortID {
|
||||
uid.ShortIDSwitch = true
|
||||
} else {
|
||||
uid.ShortIDSwitch = false
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -33,6 +33,8 @@ func NewSiteInfoCommonService(siteInfoRepo SiteInfoRepo) *SiteInfoCommonService
|
||||
}
|
||||
if seoinfo.PermaLink == schema.PermaLinkQuestionIDAndTitleByShortID || seoinfo.PermaLink == schema.PermaLinkQuestionIDByShortID {
|
||||
uid.ShortIDSwitch = true
|
||||
} else {
|
||||
uid.ShortIDSwitch = false
|
||||
}
|
||||
|
||||
return siteInfo
|
||||
|
||||
Reference in New Issue
Block a user