File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,11 @@ func RepoAssignment(ctx *Context) (cancel context.CancelFunc) {
529
529
ctx .Data ["RepoLink" ] = ctx .Repo .RepoLink
530
530
ctx .Data ["RepoRelPath" ] = ctx .Repo .Owner .Name + "/" + ctx .Repo .Repository .Name
531
531
532
+ if setting .EnableFeed {
533
+ ctx .Data ["EnableFeed" ] = true
534
+ ctx .Data ["FeedURL" ] = ctx .Repo .RepoLink
535
+ }
536
+
532
537
unit , err := ctx .Repo .Repository .GetUnit (ctx , unit_model .TypeExternalTracker )
533
538
if err == nil {
534
539
ctx .Data ["RepoExternalIssuesLink" ] = unit .ExternalTrackerConfig ().ExternalTrackerURL
Original file line number Diff line number Diff line change @@ -707,9 +707,6 @@ func Home(ctx *context.Context) {
707
707
feed .ShowRepoFeed (ctx , ctx .Repo .Repository , showFeedType )
708
708
return
709
709
}
710
-
711
- ctx .Data ["EnableFeed" ] = true
712
- ctx .Data ["FeedURL" ] = ctx .Repo .Repository .Link ()
713
710
}
714
711
715
712
checkHomeCodeViewable (ctx )
You can’t perform that action at this time.
0 commit comments