Project

General

Profile

Actions

Feature proposal #3788

closed

Implement like buttons

Added by krileon almost 12 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
23 November 2012
Due date:
% Done:

100%

Estimated time:

Description

Implement the ability to like another asset. The base for this stream api should be the follow class. There should only need to be 2 endpoints. 1 for displaying the button(s) (which also includes the ajax) and 1 for saving the stream. When creating a likes stream the asset supplied is the asset to be liked.

For the button display endpoint it's probably best to reserve show/default for an actual view (e.g. if in the future there's a view to display all the assets the user liked) so use ->likes( 'button' ) instead.

A database table needs to be added to handle the storage of the likes and a table for storage of the various like buttons (e.g. just like Locations, Actions, etc..).

Actions

Also available in: Atom PDF