Skip to content

Album desc. not returned in Gallery Remote API  #12

@witchi

Description

@witchi

Hi,

The Gallery 2 Remote API defines that the 'fetch-albums-prune' command can return additional album information as indicated in the 'extrafields' field. In the current implementation the 'extrafields' response contains "Summary" and "Description". However only the "Summary" field actually has a value returned in the response ("album.summary"), the "Description" doesn't. This can be fixed very easily by adding
"$response->setProperty('album.description.'.$i,$album->getDescription());"
in the foreach loop of the fetchAlbums function in GalleryRemote.inc. It will require a new return field however (e.g. "album.description") so it may require a version change of the protocol.

If this is not feasible then at least the fields in "extrafields" should be adapted to indicate that only the "Summary" is returned as extra information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions