tumblr commentaries: include asker's name in ask posts (#3586).

This commit is contained in:
evazion
2018-03-30 20:43:04 -05:00
parent 74d46708c7
commit b185efbb5f
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ module Sources::Strategies
when "text", "link" when "text", "link"
post[:title] post[:title]
when "answer" when "answer"
post[:question] "#{post[:asking_name]} asked: #{post[:question]}"
else else
nil nil
end end

View File

@@ -172,7 +172,7 @@ module Sources
end end
should "get the commentary" do should "get the commentary" do
assert_equal("test ask", @site.artist_commentary_title) assert_equal("Anonymous asked: test ask", @site.artist_commentary_title)
assert_match("test answer", @site.artist_commentary_desc) assert_match("test answer", @site.artist_commentary_desc)
end end
end end