kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes too strict timing constraints for new posts.
rodzic
87fafd9451
commit
d15beb2ae5
|
@ -35,7 +35,7 @@ class FilterByListParams(
|
||||||
val isHiddenList: Boolean,
|
val isHiddenList: Boolean,
|
||||||
val followLists: Account.LiveFollowLists?,
|
val followLists: Account.LiveFollowLists?,
|
||||||
val hiddenLists: Account.LiveHiddenUsers,
|
val hiddenLists: Account.LiveHiddenUsers,
|
||||||
val now: Long = TimeUtils.now(),
|
val now: Long = TimeUtils.oneMinuteFromNow(),
|
||||||
) {
|
) {
|
||||||
fun isNotHidden(userHex: String) = !(hiddenLists.hiddenUsers.contains(userHex) || hiddenLists.spammers.contains(userHex))
|
fun isNotHidden(userHex: String) = !(hiddenLists.hiddenUsers.contains(userHex) || hiddenLists.spammers.contains(userHex))
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,8 @@ object TimeUtils {
|
||||||
|
|
||||||
fun now() = System.currentTimeMillis() / 1000
|
fun now() = System.currentTimeMillis() / 1000
|
||||||
|
|
||||||
|
fun oneMinuteFromNow() = now() + ONE_MINUTE
|
||||||
|
|
||||||
fun oneMinuteAgo() = now() - ONE_MINUTE
|
fun oneMinuteAgo() = now() - ONE_MINUTE
|
||||||
|
|
||||||
fun fiveMinutesAgo() = now() - FIVE_MINUTES
|
fun fiveMinutesAgo() = now() - FIVE_MINUTES
|
||||||
|
|
Ładowanie…
Reference in New Issue