Commit graph

1507 commits

Author SHA1 Message Date
Matt Baer
414d5b0a1c Add pagination routes on lang post filter
Ref T805
2021-09-16 14:23:35 -04:00
Matt Baer
c4b124e37c Limit lang filter to 2 characters
Ref T805
2021-09-16 14:05:52 -04:00
Matt Baer
f4977c7a34 Support filtering blog posts by language
Ref T805
2021-09-13 18:36:36 -04:00
Matt Baer
6ad1f41cf4 Prevent crash on empty title
This title, typed directly in the plain editor, would previously crash
the app / show the user a "server error":

# #
2021-08-31 11:18:58 -04:00
Matt Baer
3270470b68 Ignore post created date when empty on publish 2021-08-30 17:48:30 -04:00
Matt Baer
2a0298cd46 Make metadata dropdown design consistent 2021-08-30 17:46:02 -04:00
Matt Baer
a122e4e98a
Merge pull request #502 from egon0/develop
fix Dockerfile, nodejs-npm was renamed in alpine to npm
2021-08-23 13:08:32 -05:00
Matt Baer
44bfd4573e Support keyboard navigation on pad publish target dropdown 2021-08-23 14:07:25 -04:00
HeartDev
cc69f9f2f1 Templates: use relative URLs for static assets
I noticed most asset links use relative URLs, except for a few. This commit remedies this inconsistency.
OpenGraph embeds were not changed, because in my experience, some embed scrapers require absolute URLs.

Motivation: The site I use has an onion and a clearnet version, and currently, visiting the onion loads fonts, styles, and the favicon
over the clearnet.
2021-08-21 10:18:27 +00:00
mnlg
ae7e42e24e Fix date format in anonymous posts 2021-08-13 18:43:17 +02:00
Matt Baer
fc8e209def Strip Markdown from Letter subjects
Ref T856
2021-08-10 18:05:24 -04:00
Matt Baer
e963755393 Set 'To' addresses on Letter email after message is prepared
This works with mailgun.AddRecipientAndVariables, so we can safely send
emails to a large number of recipients beyond Mailgun's 1,000-recipient
limit.

Ref T856
2021-08-10 18:01:19 -04:00
Matt Baer
2288ccf2a2 Merge branch 'develop' into letters 2021-08-10 17:47:23 -04:00
Micha Gläß-Stöcker
a58180543e fix Dockerfile, nodejs-npm was renamed in alpine to npm 2021-08-08 22:27:33 +02:00
mnlg
5be1938a8a Fix Gopher collections query 2021-08-05 16:53:20 +02:00
Matt Baer
c42439886c
Merge pull request #497 from writefreely/fix-go-gopher-import
Update go-gopher import path to new location
2021-07-23 13:30:14 -04:00
Matt Baer
adb4fdc5fe Update go-gopher import path to new location
Fixes #496
2021-07-21 17:28:48 -04:00
Matt Baer
b7f732b915
Merge pull request #485 from writefreely/hotfix-0.13.1
0.13.1 hotfix
2021-06-30 13:17:02 -04:00
Matt Baer
940d220bf3 Bump version to 0.13.1 2021-06-30 10:33:08 -04:00
Matt Baer
48075fc183
Merge pull request #474 from writefreely/fix-gen-oauth-empty-user-id
Error when generic OAuth provider doesn't return a user ID
2021-06-30 10:12:50 -04:00
Matt Baer
577bdf14aa
Merge pull request #484 from writefreely/fix-classic-backslashes
Fix trailing backslash on lists in Classic editor
2021-06-30 09:58:02 -04:00
Matt Baer
672fa10b94
Merge pull request #477 from writefreely/fix-sqlite-reader-lock
Fix SQLite database lock on Reader
2021-06-30 09:56:16 -04:00
Matt Baer
de5e91cb71 Fix trailing backslash on lists in Classic editor
Previously, when editing a post with an unordered list in it via the
Classic editor, backslashes (\) would get added to the end of each list
item. This fixes that.

Closes #480
2021-06-29 13:07:10 -04:00
Matt Baer
6291f4f155
Merge pull request #479 from writefreely/fix-stats-no-host-log
Fix "Collection.hostName is empty!" log on Stats page
2021-06-29 12:46:47 -04:00
Matt Baer
273c9cf418
Merge pull request #471 from writefreely/fix-title-lists
Don't render title as list item
2021-06-29 10:52:39 -04:00
Matt Baer
fbb3000e4d
Merge pull request #476 from writefreely/strip-image-alt-meta
Don't include img alt text in post Summary()
2021-06-28 15:47:42 -04:00
Matt Baer
6b336e22aa Log user out when authenticated as deleted user
Now when we check for the user at certain times and find that the user
doesn't exist in the database, we log them out and send them back to
the home page.
2021-06-27 17:57:07 -04:00
Matt Baer
cbc2427475 Don't apply "nofollow" to links on single-user instances 2021-06-27 10:51:53 -04:00
Matt Baer
276304d5b8 Rearrange applyMarkdownSpecial parameters 2021-06-27 10:35:36 -04:00
Matt Baer
65bc73e527
Merge pull request #475 from writefreely/fix-feed-redirect
Remove additional slash in /feed/ redirect
2021-06-26 09:37:18 -04:00
Matt Baer
d37ab544e8 Prevent out of bounds error on title with only whitespace 2021-06-25 17:08:59 -04:00
Matt Baer
1bdcf7096a Fix "Collection.hostName is empty!" log on Stats page
Fixes #468
2021-06-25 12:39:59 -04:00
Matt Baer
ed771380fb Fix SQLite database lock on Reader
Fetching posts for the Reader involves an additional query on each row,
which previously ran into our connection limit to the database and caused
it to lock up. This increases the connection limit from 1 to 2, to allow
this.

This is meant to be a quick, safe fix, but there could always be a better
solution.

Fixes #467
2021-06-25 12:10:19 -04:00
Matt Baer
720a8c1975 Don't include img alt text in post Summary()
Fixes #306
2021-06-25 11:16:03 -04:00
Matt Baer
f933b36170 Prevent out of bounds error when post has no title 2021-06-23 17:38:22 -04:00
Matt Baer
e91ffe2dcb Remove additional slash in /feed/ redirect 2021-06-23 16:50:23 -04:00
Matt Baer
3008668a7d Error when generic OAuth provider doesn't return a user ID
...on the OAuth access token inspection call. This returns an error and
privately (via logs) prompts the admin to add a `map_user_id` config value.

Fixes #469
2021-06-23 12:43:57 -04:00
Matt Baer
0ddca40529 Don't render title as list item
This fixes an issue where "12. April" would get rendered as "1. April" because
it looks like a Markdown list item to our renderer. Now, we parse titles as
titles, instead of standalone text, which causes the renderer to give us the
results we want. This also adds some basic tests for the applyBasicMarkdown()
func.

Closes #470
2021-06-22 16:06:04 -04:00
Matt Baer
2ea235f0c4 Support email subscriptions (base)
This adds beginning email subscription functionality, with only MySQL support,
Mailgun support, and incomplete support for private instances. It includes
database changes, so run:

    writefreely db migrate

to use this feature.

Ref T856
2021-06-21 18:24:40 -04:00
Matt Baer
e983c4527f Update README links and intro text 2021-06-11 12:04:13 -04:00
Matt Baer
25e4d6448b Fix ineffectual assignments in migrations 2021-06-09 14:25:55 -04:00
Matt Baer
230c736583 Run gofmt on files that need it 2021-06-09 14:22:13 -04:00
Matt Baer
e7245536f3
Merge pull request #463 from writefreely/wm-fix
Web Monetization fixes + exclusive content
2021-06-09 14:03:24 -04:00
Matt Baer
42db4b38f6 Truncate paid posts and show badge on Reader 2021-06-09 11:09:53 -04:00
Matt Baer
c05f7056c4 Fix collection rendering in Chorus mode 2021-06-09 10:04:28 -04:00
Matt Baer
e42ba392c6 Support Web Monetized split content
Ref T770
2021-06-07 15:52:24 -04:00
Matt Baer
9341784c0c Fix OAuth signup with collection description 2021-06-07 15:09:12 -04:00
Matt Baer
f0697fd555 Merge branch 'develop' into wm-fix 2021-06-07 14:58:14 -04:00
Matt Baer
7695f8c2e4
Merge pull request #464 from writefreely/api-updates
Final API changes
2021-06-07 14:56:45 -04:00
Matt Baer
85fb2a952b Support setting description on user registration 2021-06-07 14:53:22 -04:00