Skip to content

Commit

Permalink
Add "web_url" with the url to the web version of the item. Fixes tick…
Browse files Browse the repository at this point in the history
…et #1341.
  • Loading branch information
bharat committed Sep 7, 2010
1 parent 886b88f commit 2f810ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gallery/models/item.php
Expand Up @@ -975,6 +975,8 @@ public function as_restful_array() {
}
unset($data["album_cover_item_id"]);

$data["web_url"] = $this->abs_url();

if (access::can("view_full", $this) && !$this->is_album()) {
$data["file_url"] = rest::url("data", $this, "full");
}
Expand Down

0 comments on commit 2f810ec

Please sign in to comment.