Commit Graph

1288 Commits

Author SHA1 Message Date
Matt Baer 2d38e8b65e Create coll post with the provided slug, if exists
Closes T811
2021-02-22 14:25:18 -05:00
Viktor Vaczi 8c0978419f using a branch from github with the markdown hashtag serializing fix 2021-02-13 13:27:15 +01:00
CJ Eller 391844fab9
Add conditional for preserving lang metadata
This makes it so that if a post is updated, it will retain the language metadata rather than revert back.
2021-02-10 18:01:32 -05:00
CJ Eller e6c36fc2ef
Update writefreely-web image
Updated with the official writeas/writefreely image on Docker Hub.
2021-02-01 12:01:49 -05:00
Donald Feury e6417d911c Stop private and protected blogs from federating
Fixes #403
2021-01-27 19:39:46 -05:00
x4e 795748457c
Case insensitive language highlighting matching
This automatically lowercases language names used in code blocks when finding highlighting scripts for them, since highlightJS defines all languages with lowercase names.
2021-01-24 01:24:12 +00:00
funkyduck 6c1ab93717 The gopher integration was not setting host or port, causing all links to break.
This will derive the host from the configured host by stripping the protocol from the URI
2021-01-14 09:46:20 -05:00
Viktor Vaczi 6049213661 added prettierrc 2021-01-08 01:41:36 +01:00
Viktor Vaczi 9a55d38e4b working newlines, link shortcut 2021-01-08 00:33:35 +01:00
Viktor Vaczi 676b673c94 Correct line ends 2021-01-05 15:06:19 +01:00
Viktor Vaczi b1cea637cb Removed unnecessary schema nodes, custom markdown parser/serializer, publish keyboard shortcut, readmore node 2021-01-04 17:19:24 +01:00
Matt Baer f31e4d650d Use HTMLContent field in RSS feed
This re-uses the HTMLContent feed for the full HTML content in the RSS
feed, instead of again generating HTML from Markdown.

This keeps things more consistent throughout the application and reduces
work when rendering the feed.
2020-12-15 09:33:14 -05:00
Matt Baer 53ea85dc86
Merge pull request #407 from conor-f/docker-fixes
Dockerfile/docker-compose fixes
2020-12-08 09:38:22 -05:00
Colin Axner fcf01a6039 add back else clause
Add back else clause after realizing the error check doesn't return after logging.
2020-12-07 11:28:51 +01:00
Colin Axner 30fc088cec reset cache after silencing user 2020-12-06 12:45:45 +01:00
Colin Axner 3aa621ee36 allow cache to be forcibly reset
Modify updateTimelineCache to allow a boolean to indicate that the cache should be forcibly reset
2020-12-06 12:30:54 +01:00
Matt Baer d52e2826f8
Merge pull request #389 from colin-axner/remove-unnecessary-var
remove unnecessary var in account.go
2020-11-16 12:06:47 -05:00
dependabot[bot] ed00417d8d
Bump gopkg.in/ini.v1 from 1.61.0 to 1.62.0
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini) from 1.61.0 to 1.62.0.
- [Release notes](https://github.com/go-ini/ini/releases)
- [Commits](https://github.com/go-ini/ini/compare/v1.61.0...v1.62.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 05:31:06 +00:00
Conor Flynn 9f925c8138 Changes docker-compose image to use writefreely. 2020-10-26 13:52:04 +00:00
Conor Flynn 0eb1a2deec Fixes broken Docker/docker-compose structures.
Updates versions and uses maria DB instead of sqlite in the
docker-compose. Also fixes things related to networks, generating
config, etc.
2020-10-26 13:50:11 +00:00
Darius Kazemi b262fa144c Making changes per feedback 2020-10-22 13:10:51 -07:00
Darius Kazemi 0aafd0c368 Generic OAuth userinfo properies now configurable
When connecting to a generic OAuth provider, you are never sure what object you'll be receiving from the userinfo endpoint (it isn't actually specified anywhere). So this commit adds mapping values to the generic oauth configuration section of config.ini, allowing the user to specify which keys in the remote endpoint it expects to read the UserID, Username, DisplayName, and Email from. Default values if unspecified remain as they were before this commit.
2020-10-22 12:15:55 -07:00
Matt Baer 3493921837
Merge pull request #402 from dariusk/dariusk/mastodon
Adding scope field to generic OAuth
2020-10-13 12:16:32 -04:00
Matt Baer 7d4df23d3c
Merge pull request #397 from mrvdb/issue305
Drop the /tags/{tag} route
2020-10-13 08:55:04 -04:00
Matt Baer 3b91400b62
Merge pull request #387 from writeas/resize-customize-editor
Automatically resize CSS editor
2020-10-13 08:51:05 -04:00
Matt Baer bb008aa66c
Merge pull request #382 from Antolius/fix-post-summary-escaping
Fix escaping in post summary
2020-10-13 08:41:25 -04:00
Darius Kazemi 667cbb97ed Adding scope field to generic OAuth
Some OAuth providers (like Mastodon) do not use the default
"read_user" scope, instead offering a custom scope. The config.ini
for generic OAuth now contains a "scope" field, allowing the admin
to set the scope manually (it defaults to "read_user" if blank).
2020-10-12 20:54:48 -07:00
Matt Baer e1cde913e2
Merge pull request #369 from writeas/web-monetization
Support Web Monetization
2020-10-06 16:22:28 -04:00
Matt Baer 345313200e
Merge pull request #385 from writeas/fix-pinned-post-header-space
Fix header spacing on pinned posts
2020-10-03 11:52:44 -04:00
Matt Baer 211b02c209
Merge pull request #364 from Obayanju/fix-youtube-query-parameters
Fix removal of query parameters on youtube embed links
2020-10-03 11:48:30 -04:00
Matt Baer b1e22795b1
Merge pull request #378 from writeas/dependabot/go_modules/github.com/gorilla/mux-1.8.0
Bump github.com/gorilla/mux from 1.7.4 to 1.8.0
2020-10-03 11:38:53 -04:00
Matt Baer cf0403d955
Merge pull request #398 from writeas/dependabot/go_modules/github.com/mattn/go-sqlite3-1.14.4
Bump github.com/mattn/go-sqlite3 from 1.14.2 to 1.14.4
2020-10-03 11:37:03 -04:00
Matt Baer c1aed45388
Merge pull request #396 from writeas/dependabot/go_modules/gopkg.in/ini.v1-1.61.0
Bump gopkg.in/ini.v1 from 1.57.0 to 1.61.0
2020-10-03 11:33:34 -04:00
dependabot[bot] 083d8c4d67
Bump github.com/mattn/go-sqlite3 from 1.14.2 to 1.14.4
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.2 to 1.14.4.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.2...v1.14.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-03 14:35:04 +00:00
Matt Baer e3c7a8ac3a
Merge pull request #395 from writeas/dependabot/go_modules/github.com/mitchellh/go-wordwrap-1.0.1
Bump github.com/mitchellh/go-wordwrap from 1.0.0 to 1.0.1
2020-10-03 10:33:30 -04:00
dependabot[bot] 454e781ed4
Bump github.com/mitchellh/go-wordwrap from 1.0.0 to 1.0.1
Bumps [github.com/mitchellh/go-wordwrap](https://github.com/mitchellh/go-wordwrap) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/mitchellh/go-wordwrap/releases)
- [Commits](https://github.com/mitchellh/go-wordwrap/compare/v1.0.0...v1.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-03 14:30:24 +00:00
Matt Baer 1b6f9b6742
Merge pull request #393 from writeas/dependabot/go_modules/github.com/manifoldco/promptui-0.8.0
Bump github.com/manifoldco/promptui from 0.7.0 to 0.8.0
2020-10-03 10:29:03 -04:00
Marcel van der Boom 5961eb8f27 Drop the /tags/{tag} route
fixes issue #305
2020-10-03 15:34:44 +02:00
dependabot[bot] f5f28550fb
Bump gopkg.in/ini.v1 from 1.57.0 to 1.61.0
Bumps [gopkg.in/ini.v1](https://github.com/go-ini/ini) from 1.57.0 to 1.61.0.
- [Release notes](https://github.com/go-ini/ini/releases)
- [Commits](https://github.com/go-ini/ini/compare/v1.57.0...v1.61.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-01 05:23:13 +00:00
dependabot[bot] c22a751ab7
Bump github.com/manifoldco/promptui from 0.7.0 to 0.8.0
Bumps [github.com/manifoldco/promptui](https://github.com/manifoldco/promptui) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/manifoldco/promptui/releases)
- [Changelog](https://github.com/manifoldco/promptui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/manifoldco/promptui/compare/v0.7.0...v0.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-01 05:22:43 +00:00
Matt Baer 2768ea9414 Make Monetization optional
Some WriteFreely instances are completely private, and thus have no need for public-
oriented features like Web Monetization. Like federation, this gives admins control
over whether or not the feature is enabled for users.

Ref T773
2020-09-30 15:18:21 -04:00
Matt Baer 13a3a68d54 Validate and trim spaces on WM pointer
Ref T773
2020-09-30 14:42:11 -04:00
Matt Baer ec7b299fd3 Enable updating WM payment pointer via API and Customize page
Ref T773
2020-09-30 14:40:13 -04:00
Matt Baer f534ee1dec
Merge pull request #391 from colin-axner/getCollectionPage-cleanup
update getCollectionPage
2020-09-29 10:52:19 -04:00
Colin Axner 678653ac30 update getCollectionPage
Update getCollectionPage godoc and reduce logic and variable assignments
2020-09-25 16:47:31 +02:00
Colin Axner 75a79d49bd remove unnecessary var
Remove createdWithPass var in account.go along with impossible if statement
2020-09-25 16:07:30 +02:00
Matt Baer 2908080b52 Automatically resize CSS editor
Closes T708
2020-09-24 15:08:08 -04:00
Matt Baer d6d510aec9 Fix `dated` header class on pinned posts
The header shouldn't include the `dated` property, since we don't display a date
on pinned posts. This fixes that.
2020-09-17 14:55:10 -04:00
Colin Axner 5ba0ea2b04 fix accessibility of silenced user posts
Change view post collection queries to verify that the authenticated user of a silenced collection is either the owner or admin
2020-09-17 12:50:06 +02:00
Matt Baer a96d4474ef Add auto-save to WYSIWYG editor 2020-09-09 17:46:47 -04:00