Remove RSS/Atom feed support#96
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
routers/web/feed/directory containing all feed-related handlers (branch, file, profile, release, repo feeds)github.com/gorilla/feedsimport fromgo.modEnableFeedsetting frommodules/setting/other.go*.rssand*.atomfrom reserved repository and user name patterns, allowing these extensions to be used normallyservices/auth/auth.go- Removed feed request detectionservices/auth/basic.go- Removed feed authentication handlingservices/context/repo.go- Removed feed URL trimming logicrouters/web/repo/view_home.go- Removed feed renderingrouters/web/user/home.goandprofile.go- Removed feed handlersRelated Issues
Closes feed deprecation tracking issue.
Validation
Testing
.rssand.atomextensionshttps://claude.ai/code/session_014zWk3AwfVMi3uPBd51Eks6