Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Show in API when an item is a save

#74

Items in the API (the friend shake, for example) don't indicate when they are “saves” of other items already on the site. This would help clients that would like to show saves as “shared” by the poster, but credit the original poster of the item. For example, a save may appear in the API as:

{
    "description": null,
    "height": 360,
    "name": "http://www.youtube.com/watch?v=oEpj6m_hooI",
    "original_image_url": "http://mlkshk.com/r/XNU",
    "permalink_page": "http://mlkshk.com/p/XNU",
    "title": "\u65e5\u672c\u4e00\uff01\uff1f\u3000\u5927\u304d\u306a\u9d8f\u5375\uff01\uff01\u3000\u885d\u6483\u306e\u4e2d\u8eab  \u3000BIG\u3000EGG",
    "user_id": 2,
    "user_name": "andre",
    "width": 480
}

Instead it might be nice if it were:

{
    "description": null,
    "height": 360,
    "name": "http://www.youtube.com/watch?v=oEpj6m_hooI",
    "original": {
        "description": null,
        "height": 360,
        "name": "http://www.youtube.com/watch?v=oEpj6m_hooI",
        "original_image_url": "http://mlkshk.com/r/XN1",
        "permalink_page": "http://mlkshk.com/p/XN1",
        "title": "\u65e5\u672c\u4e00\uff01\uff1f\u3000\u5927\u304d\u306a\u9d8f\u5375\uff01\uff01\u3000\u885d\u6483\u306e\u4e2d\u8eab  \u3000BIG\u3000EGG",
        "user_id": 1778,
        "user_name": "satoru",
        "width": 480
    },
    "original_image_url": "http://mlkshk.com/r/XNU",
    "permalink_page": "http://mlkshk.com/p/XNU",
    "title": "\u65e5\u672c\u4e00\uff01\uff1f\u3000\u5927\u304d\u306a\u9d8f\u5375\uff01\uff01\u3000\u885d\u6483\u306e\u4e2d\u8eab  \u3000BIG\u3000EGG",
    "user_id": 2,
    "user_name": "andre",
    "width": 480
}

Reported by Mark Paschal · March 12th, 2011 @ 12:26 PM

State: new
Milestone: none
Assigned to: Andre Torrez Andre Torrez

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.