Add versions support in plugins

This commit is contained in:
alonso.torres 2024-11-13 16:24:55 +01:00
parent 07e40e78cd
commit 4de43b32e8
4 changed files with 185 additions and 3 deletions

View file

@ -75,6 +75,12 @@
{:name "avatarUrl"
:get (fn [_] (cfg/resolve-profile-photo-url data))})))
(defn user-proxy?
[p]
(or (instance? UserProxy p)
(current-user-proxy? p)
(active-user-proxy? p)))
(defn user-proxy
[plugin-id data]
(-> (UserProxy. plugin-id)