Open momo-ozawa opened 3 years ago
When we sync the remotely fetched topic with the locally stored topic, "display_name" value is mapped to the local topic's title instead of the "title" value, if it exists
topic.title = [topicDict stringForKey:TopicDictionaryDisplayNameKey] ?: [topicDict stringForKey:TopicDictionaryTitleKey];
Ref for more context: normalizeTopicDictionary:subscribed:recommended:
{
ID = 49818;
URL = "https://public-api.wordpress.com/rest/v1.2/read/tags/social-media/posts";
"display_name" = "social-media";
slug = "social-media";
title = "Social Media";
type = tag;
}
Will there be any side-effects if we change the mapping logic for the topic title to
topic.title = [topicDict stringForKey:TopicDictionaryTitleKey];
Expected behavior
Tags that contain multiple words are shown as is. (i.e. The tag "social media" should be displayed as "social media")
Actual behavior
Tags that contain multiple words are hyphenated. (i.e. The tag "social media" is displayed as "social-media")
Steps to reproduce the behavior
Tested on iPhone SE, iOS 14.4, WPiOS 16.7