]> source.dussan.org Git - redmine.git/commitdiff
Raise the maximum length of the title element in the Atom feed from 100 to 300 charac...
authorGo MAEDA <maeda@farend.jp>
Wed, 7 Feb 2024 04:27:01 +0000 (04:27 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 7 Feb 2024 04:27:01 +0000 (04:27 +0000)
Patch by Go MAEDA (@maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@22685 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/feed.atom.builder

index e62b535d18d72771c5cc14bb514737104741d1b4..eed5142779d65e618dc2c6f16aff9975f7960774 100644 (file)
@@ -2,7 +2,7 @@
 
 xml.instruct!
 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
-  xml.title   truncate_single_line_raw(@title, 100)
+  xml.title   truncate_single_line_raw(@title, 300)
   xml.link    "rel" => "self", "href" => url_for(:params => request.query_parameters, :only_path => false, :format => 'atom')
   xml.link    "rel" => "alternate", "href" => url_for(:params => request.query_parameters.merge(:format => nil, :key => nil), :only_path => false)
   xml.id      home_url
@@ -14,9 +14,9 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
     xml.entry do
       url = url_for(item.event_url(:only_path => false))
       if @project == item.project
-        xml.title truncate_single_line_raw(item.event_title, 100)
+        xml.title truncate_single_line_raw(item.event_title, 300)
       else
-        xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
+        xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 300)
       end
       xml.link "rel" => "alternate", "href" => url
       xml.id url