1
0
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:
btheado 2023-01-12 17:36:21 -06:00 committed by GitHub
parent a52da67563
commit 6e10918a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
title: $:/plugins/tiddlywiki/share/wizard title: $:/plugins/tiddlywiki/share/wizard
\define generate-json() \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 \end
\define inner-share-actions() \define inner-share-actions()
@ -12,10 +12,12 @@ title: $:/plugins/tiddlywiki/share/wizard
\define share-actions() \define share-actions()
<$set name="base-url" value={{$:/config/plugins/share/base-url}} emptyValue={{$:/info/url/full}}> <$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}}> <$set name="share-filter" value={{$:/config/plugins/share/filter}}>
<<inner-share-actions>> <<inner-share-actions>>
</$set> </$set>
</$set> </$set>
</$set>
\end \end
<div class="tc-sharing-wizard-wrapper"> <div class="tc-sharing-wizard-wrapper">