Skip to content

Commit

Permalink
ZO-4751: Deactivate publishing to facebooknewstab
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc committed Feb 20, 2024
1 parent e688780 commit 2fd1686
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/docs/changelog/ZO-4751.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ZO-4751: Deactivate publishing to facebooknewstab
2 changes: 2 additions & 0 deletions core/src/zeit/workflow/publish_3rdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ class FacebookNewstab(grok.Adapter):

def publish_json(self):
config = zope.app.appsetup.product.getProductConfiguration('zeit.workflow') or {}
if not config.get('facebooknewstab-enabled'): # XXX
return None
ignore_ressorts = {
x.strip().lower() for x in config.get('facebooknewstab-ignore-ressorts', '').split(',')
}
Expand Down
1 change: 1 addition & 0 deletions core/src/zeit/workflow/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
blacklist /blacklist
publisher-base-url http://localhost:8060/test/
facebooknewstab-startdate 2021-03-24
facebooknewstab-enabled true
speechbert-ignore-genres datenvisualisierung video quiz
speechbert-ignore-templates zon-liveblog
</product-config>
Expand Down

0 comments on commit 2fd1686

Please sign in to comment.