Commit Graph

12 Commits (245f2c08db34e535576633748fc143bb09097ca8)

Author SHA1 Message Date
6543 2c585d62a4
User/Org Feed render description as per web ()
User descriptions should be rendered so that links and other markup
appear correct in RSS feeds.
Brecht Van Lommel f4920c9c7f
Add pagination for dashboard and user activity feeds ()
Previously only the last few activities where available. This works for
all activity and for activity on a date chosen on the heatmap.
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
KN4CK3R 43ab9324c5
Fix setting HTTP headers after write ()
The headers can't be modified after it was send to the client.
KN4CK3R 223556073c
Show private data in feeds ()
Show private data in feeds for admins and matching users.
Lunny Xiao 1d8543e7db
Move some files into models' sub packages ()
* Move some files into models' sub packages

* Move functions

* merge main branch

* Fix check

* fix check

* Fix some tests

* Fix lint

* Fix lint

* Revert lint changes

* Fix error comments

* Fix lint

Co-authored-by: 6543 <6543@obermui.de>
KN4CK3R 59b867dc2d
Add `ContextUser` to http request context ()
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.
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. ()
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
6543 bc0d2c8ada
RSS/Atom support for Repos ()
* support for repos
* refactor
* advertise the feeds via meta tags
* allow feed suffix and feed header
* optimize performance
6543 cc98737ca8
RSS/Atom support for Orgs ()
part of 
Lunny Xiao a666829a37
Move user related model into models/user ()
* Move user related model into models/user

* Fix lint for windows

* Fix windows lint

* Fix windows lint

* Move some tests in models

* Merge
6543 3728f1daa0
Add RSS/Atom feed support for user actions ()
Return rss/atom feed for user based on rss url suffix or Content-Type header.