Monorepo for Tangled tangled.org

appview/pulls: update atproto record sha on resubmit #1005

merged opened by boltless.me targeting master from sl/wpvztmlptlvn
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mcwk5drsk222
+3 -1
Diff #0
+3 -1
appview/pulls/pulls.go
··· 228 228 reactionMap, err := db.GetReactionMap(s.db, 20, pull.AtUri()) 229 229 if err != nil { 230 230 log.Println("failed to get pull reactions") 231 - s.pages.Notice(w, "pulls", "Failed to load pull. Try again later.") 232 231 } 233 232 234 233 userReactions := map[models.ReactionKind]bool{} ··· 987 986 return 988 987 } 989 988 989 + s.logger.Debug("knot response", "resp", comparison) 990 + 990 991 sourceRev := comparison.Rev2 991 992 patch := comparison.FormatPatchRaw 992 993 combined := comparison.CombinedPatchRaw ··· 1875 1876 record := pull.AsRecord() 1876 1877 record.PatchBlob = blob.Blob 1877 1878 record.CreatedAt = time.Now().Format(time.RFC3339) 1879 + record.Source.Sha = newSourceRev 1878 1880 1879 1881 _, err = comatproto.RepoPutRecord(r.Context(), client, &comatproto.RepoPutRecord_Input{ 1880 1882 Collection: tangled.RepoPullNSID,

History

3 rounds 0 comments
sign up or login to add to the discussion
2 commits
expand
appview/pulls: update atproto record sha on resubmit
appview/pulls: don't notice on reaction db query failed
expand 0 comments
pull request successfully merged
2 commits
expand
appview/pulls: update atproto record sha on resubmit
appview/pulls: don't notice on reaction db query failed
3/3 success
expand
expand 0 comments
boltless.me submitted #0
1 commit
expand
appview/pulls: update atproto record sha on resubmit
3/3 success
expand
expand 0 comments