mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
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:
1 parent
7e690d0e92
commit
bb23413533
6 files changed
+149
-12
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user