mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Fixes share plugin stale url and prevents wikification of generated json (#7207)
* Use tv-action-refresh-policy to ensure generated share url is up-to-date * Use 'text/raw' output to prevent generated json from being wikified
This commit is contained in:
parent
a52da67563
commit
6e10918a28
@ -1,7 +1,7 @@
|
||||
title: $:/plugins/tiddlywiki/share/wizard
|
||||
|
||||
\define generate-json()
|
||||
<$macrocall $name="jsontiddlers" filter=<<share-filter>> spaces="" $output="text/vnd.tiddlywiki"/>
|
||||
<$macrocall $name="jsontiddlers" filter=<<share-filter>> spaces="" $output="text/raw"/>
|
||||
\end
|
||||
|
||||
\define inner-share-actions()
|
||||
@ -12,10 +12,12 @@ title: $:/plugins/tiddlywiki/share/wizard
|
||||
|
||||
\define share-actions()
|
||||
<$set name="base-url" value={{$:/config/plugins/share/base-url}} emptyValue={{$:/info/url/full}}>
|
||||
<$set name="tv-action-refresh-policy" value="always">
|
||||
<$set name="share-filter" value={{$:/config/plugins/share/filter}}>
|
||||
<<inner-share-actions>>
|
||||
</$set>
|
||||
</$set>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
<div class="tc-sharing-wizard-wrapper">
|
||||
|
Loading…
Reference in New Issue
Block a user