Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Add new block: social #258

Merged
merged 5 commits into from
Jul 1, 2021
Merged

Add new block: social #258

merged 5 commits into from
Jul 1, 2021

Conversation

remi-dupre
Copy link
Contributor

@remi-dupre remi-dupre commented Jul 1, 2021

This adds new links for facebook, twitter, instagram and youtube (this last one is not really a social network but it has consequent coverage on OSM). Additionally, Facebook links won't be used anymore as websites urls (previously as a fallback for OSM and depending on the order for PJ).

I couldn't find any example of PJ places with an Instagram link so I didn't include it here :/

Comment on lines 290 to 294
suggested_label = self.data.website_urls[0].suggested_label
suggested_label = self.get_website_url_for_type(UrlType.EXTERNAL_WEBSITE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the suggested_label field provided by the API is no longer used ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fixed, and also the lack of test 😅

@remi-dupre remi-dupre merged commit 440207a into master Jul 1, 2021
@remi-dupre remi-dupre deleted the block-social branch July 1, 2021 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants