Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New extension hook entry_auto_read #5505

Merged
merged 2 commits into from Jul 5, 2023
Merged

Conversation

Alkarex
Copy link
Member

@Alkarex Alkarex commented Jul 4, 2023

For extensions to be notified of articles being automatically marked as read for various reasons

For extensions to be notified of articles being automatically marked as read for various reasons
@Alkarex Alkarex added this to the 1.22.0 milestone Jul 4, 2023
Comment on lines 29 to 32
'entry_auto_read' => array( // function(FreshRSS_Entry $entry, string $why) -> none
'list' => array(),
'signature' => 'PassArguments',
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use [] for arrays ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another time, not to mess the rest of the PR here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alkarex Alkarex marked this pull request as ready for review July 4, 2023 10:16
@Alkarex Alkarex merged commit 1db606b into FreshRSS:edge Jul 5, 2023
1 check passed
@Alkarex Alkarex deleted the entry_auto_read branch July 5, 2023 09:00
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Aug 3, 2023
Partial revert of FreshRSS#5505
We should not apply the auto mark as read rule based on existing titles for updated articles, because the match would most of the time be on that same article's title.
Comment on lines +488 to +491
$entry->applyFilterActions($titlesAsRead);
if ($readWhenSameTitleInFeed > 0) {
$titlesAsRead[$entry->title()] = true;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was wrong. Reverted in #5561

Alkarex added a commit that referenced this pull request Aug 3, 2023
Partial revert of #5505
We should not apply the auto mark as read rule based on existing titles for updated articles, because the match would most of the time be on that same article's title.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants