mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
4914899cad
2 changed files with 2 additions and 2 deletions
|
|
@ -297,7 +297,7 @@ func refreshAnnouncement() {
|
|||
}
|
||||
}
|
||||
|
||||
for _, announcement := range GetAnnouncements() {
|
||||
for _, announcement := range getAnnouncements() {
|
||||
var exist bool
|
||||
for _, existingAnnouncement := range existingAnnouncements {
|
||||
if announcement.Id == existingAnnouncement.Id {
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ type Announcement struct {
|
|||
Region int `json:"region"`
|
||||
}
|
||||
|
||||
func GetAnnouncements() (ret []*Announcement) {
|
||||
func getAnnouncements() (ret []*Announcement) {
|
||||
result, err := util.GetRhyResult(false)
|
||||
if err != nil {
|
||||
logging.LogErrorf("get announcement failed: %s", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue