Commit Graph

1387 Commits

Author SHA1 Message Date
Matt Baer 93c2773412 Prevent account creation via OAuth when registration is closed 2020-04-20 15:26:53 -04:00
gytisrepecka 0e1459c6b2
Remove address variable - to make Locations use host value from config instead. 2020-04-17 17:12:06 +03:00
gytisrepecka 658310bc24
Remove constant giteaHost because there is no default URL for Gitea - must always use host from config.ini. 2020-04-17 17:07:45 +03:00
gytisrepecka ddd519f6b7 Merge branch 'develop' into oauth-gitea before making fixes to address pull request #293 feedback. 2020-04-17 15:33:18 +03:00
Joice M. Joseph 671c7e99a5 fix: #297 - tls for mysql connetions 2020-04-16 09:34:16 +05:30
Matt Baer 5e4ed5d9bc Remove extraneous @context fields on AP outbox 2020-04-15 12:30:50 -04:00
Matt Baer 1c5a0099b6 Fix empty date showing on collection 404 page 2020-04-14 07:27:44 -04:00
Matt Baer 5de4d2086b Optimize Drafts retrieval
This adds a database index to speed up retrieval of Drafts.

It is untested with SQLite.
2020-04-09 13:54:26 -04:00
Matt Baer e51e58386e Update versions in migrations.go 2020-04-09 13:49:44 -04:00
Matt Baer 9f1dd7a138 Use latest writeas/activityserve library
This fixes a 500 error / panic caused by ActivityPub actors without an
`inbox` or `outbox` attribute.
2020-04-09 13:00:29 -04:00
gytisrepecka c798a44f69
Added Gitea OAuth login and account management. 2020-04-03 13:26:59 +03:00
Matt Baer d6cb178eb6 Use writeas/impart v1.1.1
This doesn't change the actual underlying dependency; it simply uses the
current, most recent tag for the impart library.
2020-03-28 13:30:44 -04:00
Matt Baer c2417399a4 Bump version to 0.12.0 2020-03-27 12:53:48 -04:00
Matt Baer 8cc793142e
Merge pull request #288 from writeas/css-invalidation-release
Add CSS cache busting to templates in release
2020-03-27 12:28:52 -04:00
Matt Baer 599e7669d0 Add CSS cache busting to templates in release 2020-03-27 12:19:59 -04:00
Matt Baer dbd7eff7ea
Merge pull request #284 from writeas/high-load-error-page
Show 503 page on blogs under high load
2020-03-27 11:52:28 -04:00
Matt Baer 07debec8d5 Add new err func to wflib and sqlite builds 2020-03-27 11:48:20 -04:00
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 f76bfebfde Add dedicated Title field to WYSIWYG editor
This takes styling from the Classic Editor on Write.as.

It adds all application code for auto-saving the title, publishing it
with the post body, and including it in the word count.
2020-03-11 13:28:02 -04:00
Matt Baer 4b0833435f Restyle WYSIWYG editor
- Match light / dark theme
- Make editor fill the viewport
- Remove borders
- Add spacing in toolbar
2020-03-11 12:42:43 -04:00