Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

lexicons,api: remove ids from issue/comment lexicons

This hinders atprotation and is very appview-specific anyway.

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

authored by

Anirudh Oppiliappan and committed by
Tangled
3da753d0 50ee4b74

+6 -31
api/tangled/cbor_gen.go

This is a binary file and will not be displayed.

api/tangled/issuecomment.go

This is a binary file and will not be displayed.

api/tangled/repoissue.go

This is a binary file and will not be displayed.

+4 -9
appview/issues/issues.go
··· 278 278 } 279 279 280 280 createdAt := time.Now().Format(time.RFC3339) 281 - commentIdInt64 := int64(commentId) 282 281 ownerDid := user.Did 283 282 issueAt, err := db.GetIssueAt(rp.db, f.RepoAt(), issueIdInt) 284 283 if err != nil { ··· 301 302 Val: &tangled.RepoIssueComment{ 302 303 Repo: &atUri, 303 304 Issue: issueAt, 304 - CommentId: &commentIdInt64, 305 305 Owner: &ownerDid, 306 306 Body: body, 307 307 CreatedAt: createdAt, ··· 449 451 repoAt := record["repo"].(string) 450 452 issueAt := record["issue"].(string) 451 453 createdAt := record["createdAt"].(string) 452 - commentIdInt64 := int64(commentIdInt) 453 454 454 455 _, err = client.RepoPutRecord(r.Context(), &comatproto.RepoPutRecord_Input{ 455 456 Collection: tangled.RepoIssueCommentNSID, ··· 459 462 Val: &tangled.RepoIssueComment{ 460 463 Repo: &repoAt, 461 464 Issue: issueAt, 462 - CommentId: &commentIdInt64, 463 465 Owner: &comment.OwnerDid, 464 466 Body: newBody, 465 467 CreatedAt: createdAt, ··· 683 687 Rkey: issue.Rkey, 684 688 Record: &lexutil.LexiconTypeDecoder{ 685 689 Val: &tangled.RepoIssue{ 686 - Repo: atUri, 687 - Title: title, 688 - Body: &body, 689 - Owner: user.Did, 690 - IssueId: int64(issue.IssueId), 690 + Repo: atUri, 691 + Title: title, 692 + Body: &body, 693 + Owner: user.Did, 691 694 }, 692 695 }, 693 696 })
+1 -8
lexicons/issue/comment.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": [ 13 - "issue", 14 - "body", 15 - "createdAt" 16 - ], 12 + "required": ["issue", "body", "createdAt"], 17 13 "properties": { 18 14 "issue": { 19 15 "type": "string", ··· 18 22 "repo": { 19 23 "type": "string", 20 24 "format": "at-uri" 21 - }, 22 - "commentId": { 23 - "type": "integer" 24 25 }, 25 26 "owner": { 26 27 "type": "string",
+1 -14
lexicons/issue/issue.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": [ 13 - "repo", 14 - "issueId", 15 - "owner", 16 - "title", 17 - "createdAt" 18 - ], 12 + "required": ["repo", "title", "createdAt"], 19 13 "properties": { 20 14 "repo": { 21 15 "type": "string", 22 16 "format": "at-uri" 23 - }, 24 - "issueId": { 25 - "type": "integer" 26 - }, 27 - "owner": { 28 - "type": "string", 29 - "format": "did" 30 17 }, 31 18 "title": { 32 19 "type": "string"