Matt Baer
8ad04c5187
Merge pull request #272 from writeas/novelfix
...
Fix Novel pagination
2020-03-27 11:38:20 -04:00
CJ Eller
f11e6ed843
Apply review edits to chorus-collection
2020-03-27 11:22:35 -04:00
CJ Eller
540d716d29
Apply review edits
2020-03-27 11:22:16 -04:00
Matt Baer
1d25b38eb7
Merge pull request #282 from writeas/patch-ap-mentions
...
Clean up ActivityPub mentions
2020-03-27 09:07:57 -04:00
Matt Baer
c3400242f0
Merge pull request #274 from writeas/private-instance-improvements
...
Private instance cleanup
2020-03-27 09:05:45 -04:00
Matt Baer
9c93e55e0a
Merge pull request #281 from writeas/accessibility-improvements
...
Accessibility improvements for readers
2020-03-26 10:09:28 -04:00
Matt Baer
0acc630af5
Merge pull request #243 from writeas/T713-oauth-account-management
...
OAuth account management
2020-03-24 15:09:49 -04:00
Matt Baer
491a1148ee
Restyle OAuth account management section
...
- Break up linked / to-link sections
- Add logos for all services
- Lay out buttons horizontally
- Tweak the copy
Ref T713
2020-03-24 10:41:53 -04:00
Matt Baer
5d01f49ce9
Move /me/oauth/remove endpoint to /api/me/oauth/remove
2020-03-24 10:33:45 -04:00
Matt Baer
d7d4cd907e
Tweak "account already attached" verbiage
2020-03-24 09:09:14 -04:00
Matt Baer
b25e80bb1b
Show configured GitLab name on Account page
...
This includes the chosen GitLab display name in the button text.
2020-03-24 09:07:27 -04:00
Matt Baer
9dbba9d8c7
Make handle
column in remoteusers NULL
...
This alters the V6 migration to make the column NULLable. Anyone who has already run this migration will need to manually update their database.
2020-03-24 07:59:00 -04:00
Nick Gerakines
048e8a5e13
Added error messaging when user attempts to attach a slack account to a user that already has the slack account attached. Added GitLab to settings page as oauth option.
2020-03-20 18:07:35 -04:00
Matt Baer
f9cd87ae3a
Log handle on GetProfilePageFromHandle err
2020-03-19 13:43:07 -04:00
Matt Baer
cf4f08b264
Merge branch 'develop' into T713-oauth-account-management
2020-03-19 12:02:33 -04:00
Matt Baer
75a9df82ab
Merge pull request #283 from writeas/gitlab-oauth-cleanup
...
Clean up GitLab auth code
2020-03-19 12:00:56 -04:00
Matt Baer
9e25979e37
Run go fmt on modified GitLab files
2020-03-18 16:17:06 -04:00
Matt Baer
0285a9b0bd
Show 503 page on collections under high load
...
This acknowledges "too many connections" and "max user connections"
errors in MySQL and propagates the error up the chain so we can notify
the user and return the correct HTTP code.
2020-03-18 16:14:05 -04:00
Matt Baer
79a968f425
Fix login.tmpl rendering
...
This passes in the correct field named GitlabDisplayName.
2020-03-18 16:05:26 -04:00
Matt Baer
ac522ed600
Reuse mention regex
...
This makes the app less error-prone by avoiding a regexp.MustCompile()
call in the ActivityObject() method, saves CPU work, and reuses code.
2020-03-17 13:43:25 -04:00
Matt Baer
97aec9c158
Fix error / info logging around AP mentions
...
This fixes log formatting and makes verbiage consistent & concise.
2020-03-17 13:42:51 -04:00
Matt Baer
471a9e0602
Store AP handles consistently
...
This ensures handles are always stored without leading @ symbol.
2020-03-17 13:42:09 -04:00
Matt Baer
a9bed9fea9
Prevent nil pointer panic from ActivityObject() method
...
Previously, we might potentially return a nil activitystreams.Object,
which would crash the app. This fixes that.
2020-03-17 13:14:29 -04:00
Matt Baer
f4c106beaf
Fix text contrast ratio in blockquote
...
This darkens the text slightly to get a contrast ratio over 4.5:1.
2020-03-17 10:31:44 -04:00
Matt Baer
3e1019f29d
Fix text contrast ratio on pinned post links
...
This also darkens the text color of the blog description, to
differentiate it from the pinned links.
2020-03-17 10:24:30 -04:00
Matt Baer
06054a2cd7
Merge pull request #268 from writeas/noindex-invite-links
...
Add 'X-Robots-Tag: noindex' header to invite URLs
2020-03-16 13:38:18 -04:00
Matt Baer
da0455198d
Merge pull request #194 from writeas/table-borders
...
lightly style tables in posts
2020-03-16 12:40:20 -04:00
Matt Baer
5b6e008118
Merge pull request #277 from paddatrapper/oauth-gitlab
...
Add Gitlab OAuth
2020-03-16 12:18:45 -04:00
Kyle Robbertze
26b6ed5f4f
simplify gitlab oauth config
2020-03-16 15:11:03 +02:00
Matt Baer
f126ac624a
Merge pull request #276 from writeas/dateless-pinned-posts
...
Don't show date on pinned post page
2020-03-13 12:15:57 -04:00
Kyle Robbertze
c292512b9d
add Gitlab OAuth
2020-03-12 10:50:55 +02: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