Signed-off-by: Seongmin Lee git@boltless.me
+3
-1
Diff
round #0
+3
-1
appview/pulls/pulls.go
+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
boltless.me
submitted
#2
expand 0 comments
pull request successfully merged
boltless.me
submitted
#1
2 commits
expand
collapse
appview/pulls: update atproto record sha on resubmit
Signed-off-by: Seongmin Lee <git@boltless.me>
appview/pulls: don't notice on reaction db query failed
pull page can be rendered fine without reaction map
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 success
expand
collapse
expand 0 comments
boltless.me
submitted
#0
1 commit
expand
collapse
appview/pulls: update atproto record sha on resubmit
Signed-off-by: Seongmin Lee <git@boltless.me>