diff --git a/phone/src/apps/twitter/components/TwitterApp.js b/phone/src/apps/twitter/components/TwitterApp.js index 46d1465..7cb545f 100644 --- a/phone/src/apps/twitter/components/TwitterApp.js +++ b/phone/src/apps/twitter/components/TwitterApp.js @@ -41,8 +41,6 @@ export const TwitterApp = () => { const [activePage, setActivePage] = useState(0); const { profile } = useProfile(); - console.log(profile); - useEffect(() => { Nui.send("phone:getOrCreateTwitterProfile", {}); Nui.send("phone:fetchTweets", {}); diff --git a/resources/server/sv_twitter.lua b/resources/server/sv_twitter.lua index 1e65817..7c2e624 100644 --- a/resources/server/sv_twitter.lua +++ b/resources/server/sv_twitter.lua @@ -7,8 +7,9 @@ end) function fetchAllTweets(cb) MySQL.Async.fetchAll([[ SELECT + npwd_twitter_profiles.profile_name, + npwd_twitter_profiles.avatar_url, npwd_twitter_tweets.*, - npwd_twitter_profiles.*, TIME_TO_SEC(TIMEDIFF( NOW(), npwd_twitter_tweets.createdAt)) AS seconds_since_tweet FROM npwd_twitter_tweets LEFT OUTER JOIN npwd_twitter_profiles ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier @@ -26,8 +27,9 @@ function fetchTweetsFiltered(searchValue, cb) local searchValueParameterized = '%' .. searchValue .. '%' MySQL.Async.fetchAll([[ SELECT + npwd_twitter_profiles.profile_name, + npwd_twitter_profiles.avatar_url, npwd_twitter_tweets.*, - npwd_twitter_profiles.*, TIME_TO_SEC(TIMEDIFF( NOW(), npwd_twitter_tweets.createdAt)) AS seconds_since_tweet FROM npwd_twitter_tweets LEFT OUTER JOIN npwd_twitter_profiles ON npwd_twitter_tweets.identifier = npwd_twitter_profiles.identifier