-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Feature] Expose user labels on entries for hooks #7975
Copy link
Copy link
Closed
Labels
Milestone
Description
Is your feature request related to a problem? Please describe.
When handling an incoming entry (either inside an extension or via the API), there is no straightforward way to check if it has a given user-assigned label. Right now, entries expose their feed tags, but user labels are stored separately.
Use case
Context: I tried to capture new entries using the entry_before_insert hook. At that point, I can only access the feed-provided tags, not the user labels. This means I cannot filter or trigger actions on new entries based on user labels, without label filter, there will be too many feeds.
Describe the solution you’d like
Maybe expose the labels of the FreshRSS_Entry object? $labels = $entry->labels();
Reactions are currently unavailable