From 681fc62f0667707b1e2bb26e80a01b7c805852d2 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 21 Jun 2016 13:24:26 -0700 Subject: [PATCH] change seo tag boundary to __ --- app/models/post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index 17e5104fe..8858905d6 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -113,14 +113,14 @@ class Post < ActiveRecord::Base def seo_tag_string if Danbooru.config.enable_seo_post_urls && !CurrentUser.user.disable_tagged_filenames? - "--#{seo_tags}--" + "__#{seo_tags}__" else nil end end def seo_tags - @seo_tags ||= humanized_essential_tag_string.gsub(/[^a-z0-9]+/, "-").gsub(/(?:^-+)|(?:-+$)/, "").gsub(/-{2,}/, "-") + @seo_tags ||= humanized_essential_tag_string.gsub(/[^a-z0-9]+/, "_").gsub(/(?:^_+)|(?:_+$)/, "").gsub(/_{2,}/, "_") end def preview_file_url