ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Record data

{
  "uri": "at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lo3zurddtw22",
  "cid": "bafyreih5gzbbt3tksp35xfw2tbk4rmuuh3so2lpzzgwdnh6moye6gcbcw4",
  "value": {
    "$type": "sh.tangled.repo.pull",
    "patch": "diff --git a/appview/db/profile.go b/appview/db/profile.go\nindex 49e9cf0..3e9bd5a 100644\n--- a/appview/db/profile.go\n+++ b/appview/db/profile.go\n@@ -81,7 +81,7 @@ type PullEventStats struct {\n \tMerged int\n }\n \n-const TimeframeMonths = 3\n+const TimeframeMonths = 7\n \n func MakeProfileTimeline(e Execer, forDid string) (*ProfileTimeline, error) {\n \ttimeline := ProfileTimeline{\n@@ -99,7 +99,7 @@ func MakeProfileTimeline(e Execer, forDid string) (*ProfileTimeline, error) {\n \tfor _, pull := range pulls {\n \t\tpullMonth := pull.Created.Month()\n \n-\t\tif currentMonth-pullMonth > TimeframeMonths {\n+\t\tif currentMonth-pullMonth >= TimeframeMonths {\n \t\t\t// shouldn't happen; but times are weird\n \t\t\tcontinue\n \t\t}\n@@ -118,7 +118,7 @@ func MakeProfileTimeline(e Execer, forDid string) (*ProfileTimeline, error) {\n \tfor _, issue := range issues {\n \t\tissueMonth := issue.Created.Month()\n \n-\t\tif currentMonth-issueMonth > TimeframeMonths {\n+\t\tif currentMonth-issueMonth >= TimeframeMonths {\n \t\t\t// shouldn't happen; but times are weird\n \t\t\tcontinue\n \t\t}\n@@ -146,7 +146,7 @@ func MakeProfileTimeline(e Execer, forDid string) (*ProfileTimeline, error) {\n \n \t\trepoMonth := repo.Created.Month()\n \n-\t\tif currentMonth-repoMonth > TimeframeMonths {\n+\t\tif currentMonth-repoMonth >= TimeframeMonths {\n \t\t\t// shouldn't happen; but times are weird\n \t\t\tcontinue\n \t\t}\n",
    "title": "appview: profile: fix panic in timeline generation",
    "pullId": 72,
    "createdAt": "",
    "targetRepo": "at://did:plc:wshs7t2adsemcrrd4snkeqli/sh.tangled.repo/3liuighjy2h22",
    "targetBranch": "master"
  }
}