-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
Mlem/App/Utility/Extensions/Content Models/Profile2Providing+Extensions.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Profile2Providing+Extensions.swift | ||
// Mlem | ||
// | ||
// Created by Sjmarf on 2024-12-13. | ||
// | ||
|
||
import Foundation | ||
import MlemMiddleware | ||
|
||
extension Profile2Providing { | ||
var isCakeDay: Bool { created.isAnniversaryToday } | ||
|
||
var createdRecently: Bool { | ||
let intervalSinceCreation = Date.now.timeIntervalSince(created) | ||
return intervalSinceCreation < 30 * 24 * 60 * 60 | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,9 @@ | |
}, | ||
"%@ rules..." : { | ||
|
||
}, | ||
"%@ today!" : { | ||
|
||
}, | ||
"%lld Crossposts..." : { | ||
"localizations" : { | ||
|