Page MenuHomeWrite.as

Support Web Monetization
Closed, ResolvedPublic

Description

Overview

Enable users to add a Web Monetization payment pointer to their blogs, and encourage WM use by making it easy for users to understand.

WriteFreely

This work is tracked in #369.

Implementation

  • On each collection store an attribute: monetization_pointer
  • On collection and post rendering, if the attribute is present, include the <meta name="monetization" content="$YourPaymentPointer" /> tag in the document <head>

Design

Allow users to update this value via the blog Customize page.

Revisions and Commits

rWF WriteFreely

Related Objects

StatusAssignedTask
Resolvedmatt
Resolvedmatt

Event Timeline

matt triaged this task as High priority.Sep 25 2020, 7:01 PM
matt created this task.
matt added a commit: Restricted Diffusion Commit.Sep 26 2020, 1:11 PM
matt added a commit: Restricted Diffusion Commit.Sep 28 2020, 2:04 PM
matt added a commit: Restricted Diffusion Commit.
matt added a commit: Restricted Diffusion Commit.
matt added a commit: Restricted Diffusion Commit.Oct 30 2020, 9:54 PM
matt added a commit: Restricted Diffusion Commit.Feb 20 2021, 5:22 PM

But version v0.13.0rc1 doesn't yet allow to set monetization pointer in blog's customize page? I couldn't find it even with monetization = true set in config.

Probably templates are not modified yet?

Ah, good catch @gytisrepecka! There was an issue with the template file, which is now fixed in #463.

Thanks, will pull sources and try again 👍

As for post content, is it meant to show paid content if monetization pointer is not set? On my setup I was able to see post content that goes after <!--paid-->.

Thanks, after merging wm-fix I can now see input field to add Web Monetization Pointer for particular blog.

However it seems post template also needs changes - in renders content after <!--paid--> in public page regardless.

Great!

The paid shortcode changes haven't been included in WriteFreely yet, as it was hard to set up the infrastructure for that before. However, they recently launched a public receipt verifier server, so I'm going to port these changes to WF now.

@gytisrepecka If you pull the wm-fix branch again, you should see the exclusive content changes. Please let me know if you notice any issues there!