Skip to content

Commit

Permalink
Minor changes to presentatation of links
Browse files Browse the repository at this point in the history
  • Loading branch information
benjypng committed May 18, 2022
1 parent ce69c0e commit 23a2c14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-todoist-plugin",
"version": "4.1.0",
"version": "4.1.1",
"author": "hkgnp",
"description": "Simple Todoist plugin to pull only active tasks from specified project, i.e. Inbox",
"logseq": {
Expand Down
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ export default function App(props: any) {
data["label_ids"] = [parseInt(label_ids)];
if (priority && priority !== "0") data["priority"] = parseInt(priority);
if (due && due !== "") data["due"] = due;
data["content"] = props.content;
if (logseq.settings!.appendLogseqUri) {
data["description"] = `logseq://graph/logseq?block-id=${props.uuid}`;
data[
"content"
] = `[${props.content}](logseq://graph/logseq?block-id=${props.uuid})`;
}

const sendResponse = await axios({
Expand All @@ -66,8 +67,7 @@ export default function App(props: any) {
if (logseq.settings!.appendTodoistUrl) {
await logseq.Editor.updateBlock(
props.uuid,
`${props.content}
link:: ${sendResponse.data.url}`
`[${props.content}](${sendResponse.data.url})`
);
}

Expand Down

0 comments on commit 23a2c14

Please sign in to comment.