Skip to content

[Feature] Expose user labels on entries for hooks #7975

@hogmeade

Description

@hogmeade

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();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions