Skip to content

Commit

Permalink
ui_handler: /by-enclosure.json returns absolute URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jun 9, 2012
1 parent 0fb9534 commit 6ca0cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/ui/src/ui_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -419,18 +419,18 @@ handle_request2(#req{method = 'GET',
lists:map(
fun(#download{user = User,
slug = Slug,
item = Id,
item = Item,
name = Name,
title = Title,
published = Published,
homepage = Homepage,
payment = Payment,
image = Image,
feed_title = FeedTitle}) ->
io:format("Payment: ~p~n", [Payment]),
{obj,
[{<<"torrent">>, ui_link:torrent(User, Slug, Name)},
{<<"item.id">>, Id},
[{<<"torrent">>, <<(ui_link:base())/binary, (ui_link:torrent(User, Slug, Name))/binary>>},
{<<"permalink">>, <<(ui_link:base())/binary, (ui_link:link_item(User, Slug, Item))/binary>>},
{<<"item.id">>, Item},
{<<"item.title">>, Title},
{<<"item.published">>, iso8601(Published)},
{<<"item.homepage">>, Homepage},
Expand Down

0 comments on commit 6ca0cd4

Please sign in to comment.