Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
ac109325
Commit
ac109325
authored
7 years ago
by
ThibG
Committed by
Eugen Rochko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow HTTP caching of atom-rendered public toots (OStatus compatibility) (#6207)
parent
af408249
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/stream_entries_controller.rb
+5
-0
5 additions, 0 deletions
app/controllers/stream_entries_controller.rb
with
5 additions
and
0 deletions
app/controllers/stream_entries_controller.rb
+
5
−
0
View file @
ac109325
...
...
@@ -10,6 +10,7 @@ class StreamEntriesController < ApplicationController
before_action
:set_stream_entry
before_action
:set_link_headers
before_action
:check_account_suspension
before_action
:set_cache_headers
def
show
respond_to
do
|
format
|
...
...
@@ -19,6 +20,10 @@ class StreamEntriesController < ApplicationController
end
format
.
atom
do
unless
@stream_entry
.
hidden?
skip_session!
expires_in
3
.
minutes
,
public:
true
end
render
xml:
OStatus
::
AtomSerializer
.
render
(
OStatus
::
AtomSerializer
.
new
.
entry
(
@stream_entry
,
true
))
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment