FIX: Always decrypt topic titles (#129)

FIX: Always decrypt topic titles (#129)

When use_pg_headlines_for_excerpt site settings is enabled, the topic_title_headline property of the post model is used instead of topic.fancy_title. Because of this, topic titles were not decrypted in search results.

diff --git a/assets/javascripts/discourse/initializers/add-search-results.js b/assets/javascripts/discourse/initializers/add-search-results.js
index 8c7f6df..d006b2b 100644
--- a/assets/javascripts/discourse/initializers/add-search-results.js
+++ b/assets/javascripts/discourse/initializers/add-search-results.js
@@ -40,6 +40,7 @@ function getOrFetchCache(session) {
       const promises = [];
 
       result.posts.forEach((post) => {
+        post.topic_title_headline = null;
         addCacheItem(session, "posts", post);
       });
 

GitHub sha: 732c554528b6802c6ef01b4f18e76a296bdb58d2

This commit appears in #129 which was approved by nbianca. It was merged by udan11.