Skip to content

Commit

Permalink
Repair links to legacy projects that have been restored on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotschnig committed Jan 31, 2025
1 parent 70f4589 commit 371e485
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,11 @@ class VersionInfo(val code: Int, val name: String) : Parcelable {
fun mastodonLink(context: Context) =
resolveMoreInfo(context, "version_more_info_")?.let { context.getString(it) }

fun githubUrl(context: Context) =
githubLink(context)?.let {
"https://github.com/users/mtotschnig/projects/$it"
fun githubUrl(context: Context) = githubLink(context)?.let {
(if (code < 740) "https://github.com/mtotschnig/MyExpenses/projects/" else "https://github.com/users/mtotschnig/projects/") + it
}

fun mastodonUrl(context: Context) =
mastodonLink(context)?.let {
fun mastodonUrl(context: Context) = mastodonLink(context)?.let {
"https://mastodon.social/@myexpenses/$it"
}

Expand Down

0 comments on commit 371e485

Please sign in to comment.