Merge lp:~b-m-f/resource-centre/exclude-cn-posts into lp:resource-centre

Proposed by Maximilian Ehlers on 2019-04-23
Status: Merged
Merged at revision: 112
Proposed branch: lp:~b-m-f/resource-centre/exclude-cn-posts
Merge into: lp:resource-centre
Diff against target: 12 lines (+1/-1)
1 file modified
functions/rss.php (+1/-1)
To merge this branch: bzr merge lp:~b-m-f/resource-centre/exclude-cn-posts
Reviewer Review Type Date Requested Status
David Callé 2019-04-23 Approve on 2019-04-23
Review via email: mp+366385@code.launchpad.net

Commit message

Exclude chinese content tag

Description of the change

This change should keep chinese content from appearing.

To post a comment you must log in.
Toto Bille (tbmb) :
113. By Maximilian Ehlers on 2019-04-23

Use array for supplying multiple tags to ignore to query

David Callé (davidc3) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'functions/rss.php'
2--- functions/rss.php 2018-11-20 10:49:09 +0000
3+++ functions/rss.php 2019-04-23 09:33:11 +0000
4@@ -6,7 +6,7 @@
5 function myFeedExcluder($query) {
6 if ($query->is_feed) {
7 $query->set('cat','-1554,-1551,-1552,-1553,-344,-347,-346,-345');
8- $query->set('tag__not_in','3184');
9+ $query->set('tag__not_in', array('3184,3265'));
10 }
11 return $query;
12 }

Subscribers

People subscribed via source and target branches