Skip to content

Remove RSS/Atom feed support#96

Merged
rg4444 merged 2 commits into
mainfrom
claude/remove-rss-feeds-GzYlG
Feb 7, 2026
Merged

Remove RSS/Atom feed support#96
rg4444 merged 2 commits into
mainfrom
claude/remove-rss-feeds-GzYlG

Conversation

@rg4444
Copy link
Copy Markdown
Contributor

@rg4444 rg4444 commented Feb 7, 2026

Summary

This PR removes RSS and Atom feed functionality from Gitea. Feed support has been deprecated and is being removed to simplify the codebase and reduce maintenance burden.

Changes Made

  • Removed feed package: Deleted routers/web/feed/ directory containing all feed-related handlers (branch, file, profile, release, repo feeds)
  • Removed gorilla/feeds dependency: Removed the github.com/gorilla/feeds import from go.mod
  • Removed feed configuration: Deleted EnableFeed setting from modules/setting/other.go
  • Removed feed routes: Removed all RSS/Atom feed routes from web router configuration
  • Updated reserved names: Removed *.rss and *.atom from reserved repository and user name patterns, allowing these extensions to be used normally
  • Removed feed-related code: Cleaned up feed detection and handling from:
    • services/auth/auth.go - Removed feed request detection
    • services/auth/basic.go - Removed feed authentication handling
    • services/context/repo.go - Removed feed URL trimming logic
    • routers/web/repo/view_home.go - Removed feed rendering
    • routers/web/user/home.go and profile.go - Removed feed handlers
  • Updated templates: Removed feed links and RSS icons from:
    • Base head template
    • Org/user headers
    • Repo headers and branch lists
    • Release/tag headers
    • File view templates
    • User profile templates
  • Updated NodeInfo: Removed RSS from outbound services list
  • Updated tests: Modified feed-related tests to verify feeds are no longer available

Related Issues

Closes feed deprecation tracking issue.

Validation

  • No BPMN render/diff impact
  • No image regeneration needed
  • No schema/validator updates needed

Testing

  • Updated integration tests to verify feed endpoints return 404
  • Verified reserved name patterns no longer block .rss and .atom extensions
  • Confirmed all feed-related imports and code paths have been removed

https://claude.ai/code/session_014zWk3AwfVMi3uPBd51Eks6

RSS feeds are an outdated technology. This removes all RSS-specific
functionality while preserving Atom feed support:

- Remove RSS alternate link tags from HTML head
- Switch all feed buttons/links in templates from .rss to .atom URLs
- Remove RSS route registrations (tags, releases, branch feeds)
- Remove RSS handler functions (RenderBranchFeedRSS, ShowUserFeedRSS,
  ReleasesFeedRSS, TagsListFeedRSS)
- Remove RSS format detection from GetFeedType and auth path detection
- Simplify writeFeed to only output Atom format
- Remove .rss from reserved user/repo name patterns
- Update blockexpensive paths from rss to atom
- Update nodeinfo outbound protocol from rss2.0 to atom1.0
- Update all tests to use Atom endpoints instead of RSS

https://claude.ai/code/session_014zWk3AwfVMi3uPBd51Eks6
Feed functionality (both RSS and Atom) is no longer needed in modern web
applications. This removes all feed support including:

- All feed route handlers and the entire routers/web/feed/ package
- Feed link/button elements from all templates (repo header, org header,
  branch list, release/tag header, file view, user profile)
- Feed <link rel="alternate"> tags from HTML head
- Feed auth bypass patterns in services/auth
- Feed-related context data (EnableFeed, FeedURL)
- EnableFeed setting from modules/setting/other.go
- Reserved *.atom name patterns for users and repos
- atom1.0 from NodeInfo outbound protocols
- gorilla/feeds dependency from go.mod
- Feed-related CSS (.rss-icon) and JS (octicon-rss SVG import)
- Feed code from RepoBranchTagSelector Vue component

Tests updated to verify feed endpoints return 404.

https://claude.ai/code/session_014zWk3AwfVMi3uPBd51Eks6
@rg4444 rg4444 merged commit a824faf into main Feb 7, 2026
11 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants