KN4CK3R
59b867dc2d
Add `ContextUser` to http request context ( #18798 )
...
This PR adds a middleware which sets a ContextUser (like GetUserByParams before) in a single place which can be used by other methods. For routes which represent a repo or org the respective middlewares set the field too.
Also fix a bug in modules/context/org.go during refactoring.
3 years ago
KN4CK3R
80fd25524e
Renamed ctx.User to ctx.Doer. ( #19161 )
...
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
6543
bc0d2c8ada
RSS/Atom support for Repos ( #19055 )
...
* support for repos
* refactor
* advertise the feeds via meta tags
* allow feed suffix and feed header
* optimize performance
3 years ago
6543
cc98737ca8
RSS/Atom support for Orgs ( #17714 )
...
part of #569
3 years ago
Lunny Xiao
a666829a37
Move user related model into models/user ( #17781 )
...
* Move user related model into models/user
* Fix lint for windows
* Fix windows lint
* Fix windows lint
* Move some tests in models
* Merge
3 years ago
6543
3728f1daa0
Add RSS/Atom feed support for user actions ( #16002 )
...
Return rss/atom feed for user based on rss url suffix or Content-Type header.
3 years ago