This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| export const ActiveProfiles = ({ profiles, onLaunchProfile }) => { | |
| const active = profiles.filter(profile => { | |
| const lastSeenTime = new Date(profile.last_seen_time); | |
| const withinLast24Hours = lastSeenTime > new Date(Date.now() - 24 * 60 * 60 * 1000); | |
| return !profile.disabled && withinLast24Hours; | |
| }); | |
| const filteredActive = active.filter(profile => profile.email !== window.currentUser.email); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| public function isBot() { | |
| $bots = array( | |
| 'googlebot', | |
| 'adsbot-google', | |
| 'feedfetcher-google', | |
| 'yahoo', | |
| 'lycos', | |
| 'bloglines subscriber', | |
| 'dumbot', |