Code Monkey home page Code Monkey logo

Comments (3)

seven332 avatar seven332 commented on June 16, 2024

主要是如果某一页所有的串都被屏蔽了,就会出问题。

from nimingban.

WUGqnwvMQPzl avatar WUGqnwvMQPzl commented on June 16, 2024

那如果說像前幾天那樣LOL幾乎佔領整個時間線的話,恐怕問題不小

不知道還有什麼更好的解決方案

from nimingban.

drpo avatar drpo commented on June 16, 2024

捞,设置里加个选项

bool ignoreForum = Settings.getIgnoreForumFromTimeline() && ACUrl.FORUM_ID_TIME_LINE.equals(mForumId);
while (postIterator.hasNext()) {
    Post post = postIterator.next();
    bool ignored = false;
    if (ignoreForum) {
        ACForumRaw postForum = DB.getACForumForForumid(post.getNMBFid());
        if (postForum != null && !postForum.getVisibility())
            ignored = true;
    }
    if (PostIgnoreUtils.INSTANCE.checkPostIgnored(post.getNMBPostId()))
        ignored = true;
    if (ignored)
        postIterator.remove();
}

if (!result.isEmpty()) {
    mPostHelper.setPages(Integer.MAX_VALUE);
    mPostHelper.onGetPageData(mTaskId, result);
}

from nimingban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.