From be379cc4a2a5f72d2c501ef37901e13bff13b0fd Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 21 Dec 2016 03:35:13 -0600 Subject: [PATCH] Return artist commentary in /sources.json?url=. --- app/logical/sources/site.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/logical/sources/site.rb b/app/logical/sources/site.rb index 8c76c1b95..6c1838253 100644 --- a/app/logical/sources/site.rb +++ b/app/logical/sources/site.rb @@ -65,7 +65,11 @@ module Sources :danbooru_name => artist_record.try(:first).try(:name), :danbooru_id => artist_record.try(:first).try(:id), :unique_id => unique_id, - :page_count => page_count + :page_count => page_count, + :artist_commentary => { + :title => artist_commentary_title, + :description => artist_commentary_desc, + } }.to_json end