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

Proposed by Maximilian Ehlers
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é (community) Approve
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.
Revision history for this message
Toto Bille (tbmb) :
113. By Maximilian Ehlers

Use array for supplying multiple tags to ignore to query

Revision history for this message
David Callé (davidc3) wrote :

+1

review: Approve

Preview Diff

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

Subscribers

People subscribed via source and target branches