Page 1 of 1

Argument #2 is not an array from NSFW plugin

Posted: 03 Jun 2013, 11:12
by reibuehl
Hi,

I have enabled the NSFW plugin that comes with tt-rss 1.7.9. I have defined a filter that assigns the tag "nsfw" to some feeds and I can see that the tags get added to posts in these feeds. However the plugin writes errors like this in the error log:

Code: Select all

E_WARNING (2)   plugins/nsfw/init.php:39   array_intersect(): Argument #2 is not an array


Did I define the tag somehow wrongly or what could cause this?

Re: Argument #2 is not an array from NSFW plugin

Posted: 04 Jun 2013, 15:34
by fox
Looks like nsfw plugin got broken because of some internal changes in tt-rss. This should fix it:

https://github.com/gothfox/Tiny-Tiny-RS ... 68c4aaf3c6

Re: Argument #2 is not an array from NSFW plugin

Posted: 04 Jun 2013, 20:25
by reibuehl
The fix works. Thanks for your help!

Re: Argument #2 is not an array from NSFW plugin

Posted: 04 Jun 2013, 21:00
by reibuehl
I was too fast, sorry. It looks like it works only for articles that have "nsfw" as the only tag. Articles with additional tags seem to stay untouched.

Re: Argument #2 is not an array from NSFW plugin

Posted: 05 Jun 2013, 09:22
by fox
I'll try to take a look at this later today.

Re: Argument #2 is not an array from NSFW plugin

Posted: 05 Jun 2013, 10:28
by fox