When merging artcomms, list source as html page url, not image url.
This commit is contained in:
@@ -115,10 +115,12 @@
|
||||
// If the new description conflicts with the current description, merge them
|
||||
// by appending the new description onto the old one.
|
||||
Danbooru.ArtistCommentary.merge_commentaries = function(description, commentary) {
|
||||
var normalized_source = $("#image-container").data().normalizedSource;
|
||||
|
||||
if ((commentary.original_description && description) &&
|
||||
(commentary.original_description != description)) {
|
||||
return description
|
||||
+ "\n\n[tn]\nSource: " + $("#post_source").val() + "\n[/tn]"
|
||||
+ "\n\n[tn]\nSource: " + normalized_source + "\n[/tn]"
|
||||
+ "\n\nh6. " + (commentary.original_title || "Untitled")
|
||||
+ "\n\n" + commentary.original_description
|
||||
+ "\n\n[tn]\nSource: " + commentary.source + "\n[/tn]";
|
||||
|
||||
@@ -88,6 +88,8 @@ class PostPresenter < Presenter
|
||||
data-file-url="#{post.file_url}"
|
||||
data-large-file-url="#{post.large_file_url}"
|
||||
data-preview-file-url="#{post.preview_file_url}"
|
||||
data-source="#{post.source}"
|
||||
data-normalized-source="#{post.normalized_source}"
|
||||
}.html_safe
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user