Append intance url to creator's account if necessary
This commit is contained in:
parent
69d969ca5c
commit
eadb7ba0e0
1 changed files with 4 additions and 2 deletions
|
|
@ -63,9 +63,11 @@
|
|||
;; TODO: :location
|
||||
[::xspf/trackList
|
||||
(map (fn [status]
|
||||
(let [file (audio-attachment status)]
|
||||
(let [file (audio-attachment status)
|
||||
acct (-> status :account :acct)]
|
||||
[::xspf/track
|
||||
[::xspf/creator (-> status :account :acct)]
|
||||
[::xspf/creator (str acct (when-not (re-find #"@" acct)
|
||||
(str "@" (.getHost (java.net.URL. (-> status :url))))))]
|
||||
[::xspf/image (-> status :account :avatar)]
|
||||
[::xspf/annotation (str (when (not= "" (:spoiler_text status))
|
||||
(str (:spoiler_text status) "\n\n"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue