initial likes implementation

This adds the initial likes implementation. We take an approach of just
toggling the like in the database rather than adding a loading mechanic
and waiting on the UI.
This commit is contained in:
erik-sn committed 2020-10-05 21:37:19 -04:00
1 parent 7e690d0e92
commit bb23413533
6 files changed
+149 -12

No files matched your search

+4
View File
@@ -77,3 +77,7 @@ RegisterNUICallback('phone:updateTwitterProfile', function(data)
TriggerEvent('phone:getOrCreateTwitterProfile')
end, data)
end)
RegisterNUICallback('phone:toggleLike', function(tweetId)
TriggerServerEvent('phone:toggleLike', tweetId)
end)