posts: remove unused file path / url methods.
* Remove file_path_for, cropped_file_url (dead code) * Remove complete_preview_file_url (preview_file_url now returns absolute links) * Remove `file_name` (only used for Download link in sidebar)
This commit is contained in:
@@ -11,7 +11,7 @@ atom_feed(root_url: comments_url(host: Danbooru.config.hostname)) do |feed|
|
||||
feed.entry(comment, published: comment.created_at, updated: comment.updated_at) do |entry|
|
||||
entry.title("@#{comment.creator_name} on post ##{comment.post_id} (#{comment.post.humanized_essential_tag_string})")
|
||||
entry.content(<<-EOS.strip_heredoc, type: "html")
|
||||
<img src="#{comment.post.complete_preview_file_url}"/>
|
||||
<img src="#{comment.post.preview_file_url}"/>
|
||||
|
||||
#{format_text(comment.body)}
|
||||
EOS
|
||||
|
||||
Reference in New Issue
Block a user