gitea/routers/user
zeripath 596eebb2b6
Protect against NPEs in notifications list (#10879) (#10883)
* Protect against NPEs in notifications list (#10879)

Unfortunately there appears to be potential race with notifications
being set before the associated issue has been committed.

This PR adds protection in to the notifications list to log any failures
and remove these notifications from the display.

References #10815 - and prevents the panic but does not completely fix
this.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add log import

* Update models/notification.go

Co-Authored-By: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-03-30 15:23:02 +08:00
..
setting Admin page for managing user e-mail activation (#10557) (#10579) 2020-03-02 17:09:37 -03:00
auth.go Admin page for managing user e-mail activation (#10557) (#10579) 2020-03-02 17:09:37 -03:00
auth_openid.go Various fixes in login sources (#10428) (#10429) 2020-02-23 22:46:17 +02:00
avatar.go [BugFix] use default avatar for ghost user (fix 500 error) (#9536) 2019-12-29 16:24:50 +02:00
home.go working part of #9998 (#10114) (#10115) 2020-02-03 11:19:04 +08:00
home_test.go Only serve attachments when linked to issue/release and if accessible by user (#9340) 2020-01-05 01:20:08 +02:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
notification.go Protect against NPEs in notifications list (#10879) (#10883) 2020-03-30 15:23:02 +08:00
oauth.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
profile.go Fix followers and following tabs in profile (#10202) (#10203) 2020-02-09 21:00:24 +00:00