A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang. (PERSONAL FORK)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:art: Clean code

Daniel 7a2fded7 f6654f5d

+2 -2
+1 -1
kernel/model/cloud_service.go
··· 297 297 } 298 298 } 299 299 300 - for _, announcement := range GetAnnouncements() { 300 + for _, announcement := range getAnnouncements() { 301 301 var exist bool 302 302 for _, existingAnnouncement := range existingAnnouncements { 303 303 if announcement.Id == existingAnnouncement.Id {
+1 -1
kernel/model/updater.go
··· 233 233 Region int `json:"region"` 234 234 } 235 235 236 - func GetAnnouncements() (ret []*Announcement) { 236 + func getAnnouncements() (ret []*Announcement) { 237 237 result, err := util.GetRhyResult(false) 238 238 if err != nil { 239 239 logging.LogErrorf("get announcement failed: %s", err)