pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
962 stars 304 forks source link

Moderation in Twitter never returns false #158

Open olliekav opened 8 years ago

olliekav commented 8 years ago

So for example I have this set up...

$('.tweets').socialfeed({
    twitter:{
      accounts: ['#wmg'],
      limit: 100,
      consumer_key: 'key',
      consumer_secret: 'key'
    },
    template_html:
      '<div class="gallery-cell tweetsCol twitter-post"> \
        <img class="tweetsImg" src="{{=it.author_picture}}"/> \
        <p class="tweetsTxt">{{=it.text}}</p> \
      </div>',
    moderation: function(content) {
      if(content.text.indexOf('Sony') !== -1) {
        console.log(content.text)
        return false;
      }
    },
    callback: function() {
      var flky = new Flickity( '.gallery', {
        contain: true,
        prevNextButtons: true,
        pageDots: false,
        cellAlign: "left"
      });
      $('.gallery').addClass('loaded');
    }
  });

The console outputs all the tweets that contain the word 'Sony'. But they are not hidden? Even if I just return false; to the whole set they are not hidden?

olliekav commented 8 years ago

Also callbacks are never fired if you are using the twitter search? If I search using username @kyan the callback fires. If I search using hashtag #webmeetguildford the callback never fires?

MelchnerRoman commented 8 years ago

+1