Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32556897
D12473.1767237512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12473.1767237512.diff
View Options
diff --git a/lib/utils/farcaster-utils.js b/lib/utils/farcaster-utils.js
--- a/lib/utils/farcaster-utils.js
+++ b/lib/utils/farcaster-utils.js
@@ -11,6 +11,8 @@
import { syncedMetadataNames } from '../types/synced-metadata-types.js';
import { useSelector, useDispatch } from '../utils/redux-utils.js';
+const DISABLE_CONNECT_FARCASTER_ALERT = true;
+
function useCurrentUserFID(): ?string {
return useSelector(
state =>
@@ -66,4 +68,9 @@
}, [dispatch, unlinkFarcasterAccount]);
}
-export { useCurrentUserFID, useLinkFID, useUnlinkFID };
+export {
+ DISABLE_CONNECT_FARCASTER_ALERT,
+ useCurrentUserFID,
+ useLinkFID,
+ useUnlinkFID,
+};
diff --git a/lib/utils/push-alerts.js b/lib/utils/push-alerts.js
--- a/lib/utils/push-alerts.js
+++ b/lib/utils/push-alerts.js
@@ -2,7 +2,7 @@
import type { AlertInfo } from '../types/alert-types.js';
import { isDev } from '../utils/dev-utils.js';
-import { usingCommServicesAccessToken } from '../utils/services-utils.js';
+import { DISABLE_CONNECT_FARCASTER_ALERT } from '../utils/farcaster-utils.js';
const msInDay = 24 * 60 * 60 * 1000;
@@ -22,7 +22,7 @@
// with this alert.
return (
isDev ||
- !usingCommServicesAccessToken ||
+ DISABLE_CONNECT_FARCASTER_ALERT ||
alertInfo.lastAlertTime > Date.now() - msInDay
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 1, 3:18 AM (4 m, 11 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5874919
Default Alt Text
D12473.1767237512.diff (1 KB)
Attached To
Mode
D12473: [lib] introduce DISABLE_CONNECT_FARCASTER_ALERT gate
Attached
Detach File
Event Timeline
Log In to Comment