Matt Baer
9780f0bbb9
Reformat prose.less
2020-03-11 12:13:24 -04:00
Matt Baer
d277e283d5
Move ProseMirror styles to less dir
...
This keeps it consistent with all our other CSS.
2020-03-11 11:55:55 -04:00
Rob Loranger
7bccb3d7f1
fix not setting value to existing post on edit
2020-03-11 08:38:36 -07:00
Rob Loranger
b3a541ab09
markdown preserved between edit/load/save
2020-03-11 07:59:22 -07:00
Rob Loranger
ee712bbfaa
WIP: implement WYSIWYG editor w/ prosemirror
2020-03-11 07:18:03 -07:00
Rob Loranger
cb1553d67e
add basic prosemirror instructions
2020-03-10 15:17:40 -07:00
Rob Loranger
58f27717be
update .gitignore to ignore node_modules
2020-03-10 15:12:21 -07:00
Rob Loranger
f1f5dbb128
add prosemirror build environment
2020-03-10 15:11:32 -07:00
Matt Baer
bad970c60a
Merge pull request #275 from writeas/fix-v4-migrations
...
Fix V4 + V5 SQLite migrations
2020-03-10 11:03:29 -05:00
Matt Baer
2aeb994b04
Don't show date on pinned post page
...
Ref T669
2020-03-09 15:01:01 -05:00
Matt Baer
172a6dba25
Merge pull request #263 from writeas/typography-alpha
...
Typography Improvements, Vol. I
2020-03-06 07:05:51 -06:00
Matt Baer
eda267e30a
Revert accidental h2 font-size change
2020-03-04 10:14:33 -06:00
Matt Baer
32f3fcb859
Skip IF [TABLE] NOT EXISTS on v4 migrations
...
We'd like these queries to fail correctly if the tables exist.
2020-03-03 11:48:04 -06:00
Matt Baer
61ddcff2c0
Add copyright notices to fixed files
2020-03-03 11:47:38 -06:00
Matt Baer
83b2c5a21b
Fix unique index on v5 SQLite migration
...
This index needed a unique name in order for this query to succeed.
2020-03-03 11:46:51 -06:00
Matt Baer
471ef4d403
Fix "NOT NULL column with NULL" error in v5 SQLite migration
...
Previously, this migration would cause the error: "Cannot add a NOT NULL
column with default value NULL". This fixes that by setting the default
value for new columns to '' (empty string). It updates the query builder
to support this, too.
2020-03-03 11:43:46 -06:00
Matt Baer
bb5da1d3f5
Break up v5 table ALTERs for SQLite
...
Combining all operations into a single query was causing problems in
SQLite. This fixes that by breaking them up into separate queries. It
also moves one column length change to only run on MySQL, since SQLite
doesn't need it.
2020-03-03 11:40:56 -06:00
Matt Baer
f1ffcf96ec
Remove user_id and remote_user_id constraints in v4&v5 migrations
...
It's not straightforward to remove these constraints in SQLite, so this
just skips it entirely. Since both of these migrations are part of the
same WF release, this should have minimal impact on admins.
2020-03-03 11:36:30 -06:00
Matt Baer
5b2612af54
Fix created_at
default val in v4 migration for SQLite
...
This previously used a default timestamp value which caused the
migration to fail for SQLite databases.
2020-03-03 11:26:23 -06:00
Matt Baer
793380c1d9
Merge pull request #269 from writeas/lift-reader-limits
...
Adjust Reader limits and filtering
2020-03-02 17:05:57 -06:00
Matt Baer
2db6c33a41
Consolidate /signup page link logic
...
This moves logic for determining whether or not to show a "Sign up" page
on /signup (i.e. because the `/` route shows another, non-signup page)
into the AppCfg.SignupPath() method. It also changes various signup
links to use this value.
2020-03-02 16:34:44 -06:00
Matt Baer
151ec71163
Land on login form for private instances
2020-03-02 16:32:04 -06:00
Matt Baer
7aef706977
Fix Reader nav link on WFModesty + Private instance
...
(that is, hide the footer nav link when logged out)
2020-03-02 15:34:31 -06:00
Matt Baer
c71d020e86
Merge pull request #261 from techknowlogick/update-cli
...
Refactor CLI
2020-03-02 14:43:05 -06:00
Matti R
2550804d93
return clear error
2020-03-02 14:07:37 -05:00
Matti R
b6044120ef
go fmt & update per feedback
2020-03-02 13:59:32 -05:00
Matt Baer
6aa8de3a4b
Add Gopher support
...
This adds gopher support to WriteFreely -- both single- and multi-user
instances. It is off by default, but can be enabled with the new
`gopher_port` config value in the `[server]` section.
When enabled, multi-user instances will show all public blogs at
gopher://[host]:[gopher_port]/ -- otherwise, blogs are accessible at
gopher://[host]:[gopher_port]/[blog]/
This is just a proof of concept for now. We still need to handle some
edge cases and different configurations, like private instances.
Ref T559
2020-03-01 20:12:47 -05:00
Matt Baer
fca864c94a
Merge pull request #266 from writeas/fix-social-images
...
Fix image extraction for social metadata
2020-03-01 15:45:38 -05:00
Matt Baer
7283b17400
Merge pull request #267 from writeas/update-contributing-guide
...
Update Contributing guide
2020-03-01 14:27:02 -05:00
Matt Baer
4595d480ae
Merge pull request #264 from writeas/admin-dashboard-redesign
...
Admin dashboard redesign
Closes T694
2020-03-01 13:59:50 -05:00
Matt Baer
cd2e725746
Merge pull request #270 from nkoehring/js-html-aliases
...
add js, jsx and html aliases for highlightjs
2020-03-01 13:06:02 -05:00
CJ Eller
e140fe139f
Add {{end}} on line 97
2020-02-28 16:30:13 -05:00
CJ Eller
6027f7cfdc
Fixed pagination for Novel
2020-02-28 21:24:52 +00:00
koehr
b42760abab
add js, jsx and html aliases for highlightjs
2020-02-26 22:12:06 +01:00
Matt Baer
f903388a28
Fix admin nav rendering on user viewing
2020-02-25 15:03:29 -05:00
Matt Baer
9fe528bf47
Fix admin nav rendering on page editing
2020-02-25 15:01:24 -05:00
Matt Baer
303144fd24
Fix 500 when update checks disabled
...
Ref T572
2020-02-25 15:00:58 -05:00
Matt Baer
46dbb10433
Make Admin Settings page more user-friendly
...
- Add a description to each config item
- Change item names to make more sense
Ref T694
2020-02-25 14:28:34 -05:00
Matt Baer
d17e82d34c
Prevent update check from slowing app init
...
Previously, we'd wait for a response before finishing app
initialization, meaning an overall slower startup. This fixes that.
Ref T572
2020-02-25 14:20:32 -05:00
Matt Baer
05aad04b21
Limit Reader posts by count, not publish date
...
This changes the Reader to show the 250 most recent posts, with the
5-post-per-author limit still, instead of only posts from the last 3
months.
2020-02-25 13:13:36 -05:00
Matt Baer
8933076296
Add invite button to admin Users page header
...
Ref T694
2020-02-25 13:06:55 -05:00
Matt Baer
6f3b502e65
Add 'X-Robots-Tag: noindex' header to invite URLs
...
This instructs search engines to not index invite links.
2020-02-22 19:46:36 -05:00
Matt Baer
e6e8cb5944
Add details and update CONTRIBUTING guide
...
This updates the guide to explain our current practices and processes.
It now focuses primarily on contributing code, instead of other types of
contributions.
2020-02-22 13:04:26 -05:00
Matt Baer
563ea5b25b
Fix image extraction for URLs with query strings
...
Previously, image extraction wouldn't catch images with a query string
(or anything else) appended. This fixes that by parsing extracted URLs
and only checking the path for what looks like an image file.
2020-02-19 17:07:02 -05:00
Matt Baer
34d196376e
Include extracted images in draft social metadata
...
Previously, we didn't extract images for draft posts. This fixes that.
2020-02-19 16:38:50 -05:00
Matt Baer
8e8eb3c563
Merge pull request #260 from writeas/fix-deletion-pleroma
...
Fix post deletion on Pleroma
2020-02-19 09:59:25 -05:00
Matt Baer
987c74c93a
Add logging around automated update checks
...
Logs requests when --debug enabled, and always logs errors from the
check.
Ref T572
2020-02-15 12:58:45 -05:00
Matt Baer
37b7755c08
Tell admin that automated check failed when necessary
...
This keeps track when automated update check fails, and displays a
relevant message to the admin on /admin/updates
Ref T572
2020-02-15 12:56:33 -05:00
Matt Baer
c2ece926e0
Show update notification in admin nav bar
...
When a WriteFreely update is available, indicate this on the "Updates"
navigation item
Ref T572
2020-02-15 12:53:47 -05:00
Matt Baer
389dc8b9db
Show functional Updates page when checks are disabled
...
Ref T572
2020-02-15 12:19:06 -05:00