Skip to content

Commit

Permalink
feat: Upgrade post menu extraction to new implementation in getI18NFi…
Browse files Browse the repository at this point in the history
…lter
  • Loading branch information
Laisky committed Sep 23, 2024
1 parent e74c400 commit 0c2c02c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/web/blog/service/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,14 @@ func (s *Blog) getI18NFilter(ctx context.Context,
}
}

p.Menu = p.I18N.EnUs.PostMenu
p.Content = p.I18N.EnUs.PostContent
p.Menu = p.I18N.EnUs.PostMenu
}
}

// upgrade post menu to new implementation
p.Menu = ExtractMenu(p.I18N.EnUs.PostContent)

return true
}
}
Expand Down

0 comments on commit 0c2c02c

Please sign in to comment.