Commit Graph

1596 Commits

Author SHA1 Message Date
davralin 16c6788b62
Switch target branch 2022-05-27 14:01:54 +02:00
davralin 2433745504
Merge pull request #15 from davralin/develop
Update GH-actions
2022-05-25 19:47:18 +02:00
davralin 17c8e78a5c
Update GH-actions 2022-05-25 19:43:10 +02:00
davralin 84fea7abba
Remove unneeded file 2022-05-25 19:12:14 +02:00
davralin 59767804a9
Revert build 2022-05-25 18:45:59 +02:00
davralin dec0142a5b
Update Dockerfile 2022-05-25 18:43:13 +02:00
davralin f2dce539f4
Adjust default 2022-05-25 18:37:40 +02:00
davralin ea0703949d
Create docker-publish.yml 2022-05-25 18:30:26 +02:00
davralin 35ac24223d
Add stuff 2022-05-25 18:29:06 +02:00
ltdk 0a19dc1ec2 Add editorconfig 2022-05-11 13:11:22 -04:00
ltdk baaf0580f5 Add unix socket support
Enables listening on unix sockets by specifying a file path for the bind address
2022-05-10 23:51:13 -04:00
Matt Baer e5103d555f Use ini pkg on GitHub
This fixes "unknown revision v1.66.4" error
2022-04-29 14:28:55 -04:00
Matt Baer cab7fc8647 Update ini pkg to v1.66.4 2022-04-29 14:25:56 -04:00
Matt Baer face603a0e Move to go-gopher library on GitHub 2022-04-29 14:21:22 -04:00
Matt Baer 9a45030911 Change to code.as/wf/go-gopher library
This fixes build issues we're having due to the SSL certificate
on git.mills.io. It also updates to the latest version of the
go-gopher library.
2022-04-29 13:13:25 -04:00
Matt Baer 4680e2e046 Show post excerpt in stats list when no post title
Originally requested on the forum:
https://discuss.write.as/t/use-non-random-ids-for-untitled-posts-in-blog-stats/5046
2022-03-29 13:23:20 -04:00
Matt Baer c3ae4e6d3c Remove blog name in newsletter email subject
Originally requested on the forum:
https://discuss.write.as/t/minimize-subject-of-email-updates/3881
2022-03-29 13:00:53 -04:00
Darius Kazemi dd88083b2a Prevent dropping of external files onto editor
We now detect whether a file is being dropped by a user (by checking `event.dataTransfer.files.length`) and prevent the remaining drop behavior if this is the case. Otherwise, drop happens like normal (so a user can still drop text into the editor, or even an image that has been uploaded already via normal means and rendered in the editor).
2022-03-03 10:25:47 -08:00
Matt Baer fd44bc5707 Fix whitespace 2022-01-31 22:24:56 -05:00
Matt Baer 9ee83ae885 Support custom instance-level stylesheet
Will render if a file exists at: static/local/custom.css

Ref T563
2022-01-31 22:18:52 -05:00
Matt Baer e92c33aae4
Merge pull request #515 from gytisrepecka/fix-gitea-oauth-ext-user-id
#514 - Fix login with Gitea OAuth: external user ID not recorded
2022-01-28 08:59:07 -05:00
Matt Baer 0d554ce180
Merge pull request #525 from writefreely/fix-monetization-sqlite-query
Fix monetization_pointer upsert query for SQLite
2022-01-18 16:47:47 -05:00
Matt Baer a0e936ee1b Support Markdown and rel=me links in blog descriptions
Ref T874 T744
2022-01-18 16:43:17 -05:00
Matt Baer 46bb8e65a1 Add security policy
Closes #522
2022-01-11 09:41:25 -05:00
Isaac Su df7be46417 Protect drafts if they are part of a Private or Protected collection 2022-01-11 16:31:11 +11:00
Matt Baer d1e6daee16 Fix monetization_pointer upsert query for SQLite
Fixes #495
2021-12-29 18:23:31 -05:00
Matt Baer 43ca80f3eb
Merge pull request #503 from mnlg/hotfix/fix-date-format
Fix date format in anonymous posts
2021-12-29 18:05:36 -05:00
Matt Baer 1530bf37ef
Merge pull request #506 from writefreely/minor-fixes
Miscellaneous fixes
2021-12-29 17:53:16 -05:00
Matt Baer 401c8c1f4c
Merge pull request #520 from writefreely/slug-improvements
Elide Markdown when generating slug
2021-12-29 17:51:42 -05:00
Eli Mellen b190a1508b
Merge pull request #1 from eli-oat/eli-oat-remove-cheeky-404-message
Update 404-general.tmpl
2021-12-25 14:05:05 -05:00
Eli Mellen 27f68ef0cf
Update 404-general.tmpl
Remove gaslighting error message and replace with one that is a wee bit more respectful to the human using the software.
2021-12-25 14:03:40 -05:00
Matt Baer 69ab0d34e0 Elide Markdown when generating slug
This makes sure e.g. link URLs and image alt text don't get included
in the slug.

Ref T329
2021-12-21 13:55:10 -05:00
gytisrepecka 97a5121924
#514 - Fix login with Gitea OAuth problems: external user ID not properly recorded. 2021-11-28 13:38:30 +02:00
Matt Baer 129f428bfa Remove unnecessary "upgrade" collection template 2021-11-24 12:45:02 -05:00
Matt Baer 8c1785b904
Merge pull request #505 from lt3Dev/pr/relative-urls
Templates: use relative URLs for static assets
2021-11-24 11:39:06 -06:00
Matt Baer a2f9642238 Use underscores for em text in Rich editor
This fixes an issue where mixing strong and em text caused the text
to not render correctly as a post (e.g. *This is **bold text**.*
would fail).
2021-10-22 11:45:37 -05:00
Matt Baer 5b3d25b5cc Don't use dot import for github.com/gorilla/feeds 2021-09-29 12:48:50 -04:00
Matt Baer 6e5f7e87d2
Merge pull request #501 from mnlg/develop
Fix Gopher collections query
2021-09-29 11:38:13 -05:00
Matt Baer e91748c0bc Return correct count of currently-published lang posts
Previously, we'd include scheduled posts, too.

Ref T805
2021-09-16 15:53:07 -04:00
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