mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-12-01 08:20:24 +01:00
added since in request to relays, for 120 days before now.
comments created in last 120 days are requested only.
This commit is contained in:
@@ -639,3 +639,9 @@ Set<String> getPublicKeyFromName(String userName) {
|
||||
return pubkeys;
|
||||
}
|
||||
|
||||
// returns the seconds since eponch N days ago
|
||||
int getSecondsDaysAgo( int N) {
|
||||
return DateTime.now().subtract(Duration(days: N)).millisecondsSinceEpoch ~/ 1000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user