Skip to content

OC\Tags::TAG_FAVORITE is not public #19404

Description

@korelstar

Is your feature request related to a problem? Please describe.
As an app developer I want to use the PHP API in order to check if a file is a favorite and to mark a file as favorite. As far as I can see, there is no public API for this. As a workaround, I'm using the internal API in the notes app:

https://github.com/nextcloud/notes/blob/5be305ed488e2026653769e235ed575ea8a3c3ef/lib/Db/Note.php#L41

Describe the solution you'd like
There should be a method to check if an object is a favorite and to change this property. The easiest way would be to move OC\Tags::TAG_FAVORITE to a public namespace. Another possibility would be to add explicit methods for favorite handling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions