Fix mention rendering for Activity Pub (finally)
continuous-integration/drone/push Build is passing Details

pull/1135/head
James Mills 3 weeks ago
parent 2763eae1c5
commit be4f1fcae9
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6

@ -77,7 +77,7 @@ require (
go.mills.io/webfinger v0.0.0-20230218075238-e709ef684f28
go.mills.io/webmention v0.0.0-20230110091045-b61439c7853b
go.yarn.social/client v0.0.0-20221026065557-81f92f9fecbc
go.yarn.social/lextwt v0.0.0-20230305033205-d2ace007ed88
go.yarn.social/lextwt v0.0.0-20230305034352-b23f5582ef81
go.yarn.social/types v0.0.0-20230305013457-e4d91e351ac8
golang.org/x/crypto v0.6.0
golang.org/x/net v0.7.0

@ -785,6 +785,8 @@ go.yarn.social/lextwt v0.0.0-20230305030618-194713276fa6 h1:I1wYV7zzDiQO44vxE+oB
go.yarn.social/lextwt v0.0.0-20230305030618-194713276fa6/go.mod h1:VekSjgME7E/pEDo5dx1aohNr/9/vOTDAFoCdoI7mOKE=
go.yarn.social/lextwt v0.0.0-20230305033205-d2ace007ed88 h1:nc7RAZ8a/jYjQcV2rKam7QG80lrv5xhud0Qf/ko+qlo=
go.yarn.social/lextwt v0.0.0-20230305033205-d2ace007ed88/go.mod h1:VekSjgME7E/pEDo5dx1aohNr/9/vOTDAFoCdoI7mOKE=
go.yarn.social/lextwt v0.0.0-20230305034352-b23f5582ef81 h1:8H4Kdzgarv2fgQdhKi57bgNl2jDUs+cRLjpfvw9Q8y0=
go.yarn.social/lextwt v0.0.0-20230305034352-b23f5582ef81/go.mod h1:VekSjgME7E/pEDo5dx1aohNr/9/vOTDAFoCdoI7mOKE=
go.yarn.social/types v0.0.0-20221026065125-bb0847d28781/go.mod h1:XN+G4HprNn/Gp7OF2zveqsCRSWFCHtOaIRh2GlcK+U4=
go.yarn.social/types v0.0.0-20230129042829-96789c694b24/go.mod h1:+xnDkQ0T0S8emxWIsvxlCAoyF8gBaj0q81hr/VrKc0c=
go.yarn.social/types v0.0.0-20230305013457-e4d91e351ac8 h1:zfnniiSO/WO65mSpdQzGYJ9pM0rYg/BKgrSm8h2mTyA=

@ -2455,7 +2455,7 @@ func FormatTwtFactory(conf *Config, cache *Cache, archive Archiver) func(types.T
p.AllowStandardURLs()
// Override the allowed schemas as p.AllowStandardURLs only permits http, https and mailto
p.AllowURLSchemes("mailto", "http", "https", "gemini", "gopher")
p.AllowElements("a", "img", "strong", "em", "del", "p", "br", "blockquote", "ul", "ol", "li", "pre", "code", "figure", "figcaption")
p.AllowElements("a", "span", "img", "strong", "em", "del", "p", "br", "blockquote", "ul", "ol", "li", "pre", "code", "figure", "figcaption")
p.AllowAttrs("href").OnElements("a")
p.AllowAttrs("src").OnElements("img")
p.AllowAttrs("id").OnElements("dialog")

Loading…
Cancel
Save