Open
Conversation
This is a set of updates to work with current ttrss. * Used public functions instead of plugin functions like api_resize does * https://community.tt-rss.org/t/question-about-csrf-in-plugin-handler/4939/2 * switch from HOOK_RENDER_ARTICLE_CDM to HOOK_ARTICLE_FILTER * I'm not really sure when HOOK_RENDER_ARTICLE_CDM gets called, but api_resize seems to suggest it's not always. * HOOK_ARTICLE_FILTER gets called when the article is first processed * copied pieces processArticle function from api_resize because I thought it was easier to read * Updated from Db::get to db::pdo * Removed PhCURL because it was doing something weird and I didn't want to debug * Stole the settings save code from somewhere else because Ajax.request didn't work anymore * put a newline between function and open { because some functions had that and I like that style better
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a set of updates to work with current ttrss.
HOOK_RENDER_ARTICLE_CDMtoHOOK_ARTICLE_FILTERHOOK_RENDER_ARTICLE_CDMgets called, butapi_resize seems to suggest we would need to handle a few more cases
HOOK_ARTICLE_FILTERgets called when the article is first processedthought it was easier to read
to debug
didn't work anymore
that and I like that style better
This closes #5