mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 09:17:13 +02:00
✨ Open comments from email with parameter
This commit is contained in:
parent
97946fc847
commit
920638a149
4 changed files with 47 additions and 20 deletions
|
@ -47,13 +47,14 @@
|
|||
(str/join "")))
|
||||
|
||||
(defn- format-comment-url
|
||||
[{:keys [team-id file-id page-id]}]
|
||||
[thread {:keys [team-id file-id page-id]}]
|
||||
(str/ffmt "%/#/workspace?%"
|
||||
(cf/get :public-uri)
|
||||
(uri/map->query-string
|
||||
{:file-id file-id
|
||||
:page-id page-id
|
||||
:team-id team-id})))
|
||||
:team-id team-id
|
||||
:comment-id (:id thread)})))
|
||||
|
||||
(defn- format-comment-ref
|
||||
[{:keys [seqn]} {:keys [file-name page-name]}]
|
||||
|
@ -89,7 +90,7 @@
|
|||
|
||||
comment-reference (format-comment-ref thread params)
|
||||
comment-content (format-comment comment)
|
||||
comment-url (format-comment-url params)
|
||||
comment-url (format-comment-url thread params)
|
||||
|
||||
;; Users mentioned in this comment
|
||||
comment-mentions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue