Skip to content

Commit

Permalink
add automatic star and follow on project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 22, 2023
1 parent c375b1c commit 0b7e347
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
44 changes: 44 additions & 0 deletions apps/potlock/widget/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,50 @@ const handleCreateProject = (e) => {
{}
),
},
index: {
// star: `{"key":{"type":"social","path":"${ownerId}/widget/Index"},"value":{"type":"star"}}`,
// notify: `{"key":"${ownerId}","value":{"type":"star","item":{"type":"social","path":"${ownerId}/widget/Index"}}}`,
star: {
key: {
type: "social",
path: `${ownerId}/widget/Index`,
},
value: {
type: "star",
},
},
notify: {
key: ownerId,
value: {
type: "star",
item: {
type: "social",
path: `${ownerId}/widget/Index`,
},
},
},
},
graph: {
star: {
[ownerId]: {
widget: {
Index: "",
},
},
},
follow: {
[ownerId]: "",
},
},
// "graph": {
// "follow": {
// "proofofvibes.near": ""
// }
// },
// "index": {
// "graph": "{\"key\":\"follow\",\"value\":{\"type\":\"follow\",\"accountId\":\"proofofvibes.near\"}}",
// "notify": "{\"key\":\"proofofvibes.near\",\"value\":{\"type\":\"follow\"}}"
// }
},
},
};
Expand Down
44 changes: 44 additions & 0 deletions build/potlock/src/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,50 @@ const handleCreateProject = (e) => {
{}
),
},
index: {
// star: `{"key":{"type":"social","path":"${ownerId}/widget/Index"},"value":{"type":"star"}}`,
// notify: `{"key":"${ownerId}","value":{"type":"star","item":{"type":"social","path":"${ownerId}/widget/Index"}}}`,
star: {
key: {
type: "social",
path: `${ownerId}/widget/Index`,
},
value: {
type: "star",
},
},
notify: {
key: ownerId,
value: {
type: "star",
item: {
type: "social",
path: `${ownerId}/widget/Index`,
},
},
},
},
graph: {
star: {
[ownerId]: {
widget: {
Index: "",
},
},
},
follow: {
[ownerId]: "",
},
},
// "graph": {
// "follow": {
// "proofofvibes.near": ""
// }
// },
// "index": {
// "graph": "{\"key\":\"follow\",\"value\":{\"type\":\"follow\",\"accountId\":\"proofofvibes.near\"}}",
// "notify": "{\"key\":\"proofofvibes.near\",\"value\":{\"type\":\"follow\"}}"
// }
},
},
};
Expand Down

0 comments on commit 0b7e347

Please sign in to comment.