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
13eb51913e
Support Web Monetization via backend attribute
...
This supports a new `monetization_pointer` collection attribute.
When present, we include the `monetization` meta tag on all
collection pages.
2020-08-19 09:28:44 -04:00
prichier
ab285644a0
Fix: signup methods mutually exclusive
2020-08-16 20:42:55 +02:00
Pascal Richier
d3f1e40010
Merge branch 'develop' into feature/generic-oauth
2020-08-16 19:58:01 +02:00
Matt Baer
7e3eb9a87b
Merge pull request #319 from writeas/silo-mentions
...
Support AP-style mentions of centralized social media accounts
2020-08-13 12:36:42 -04:00
Matt Baer
7fa78c2255
Move fakeAPInstances to web-core/silobridge package
...
This adds support for mentioning profiles on the following sites:
- deviantart.com
- facebook.com
- flickr.com
- github.com
- instagram.com
- reddit.com
- wattpad.com
- youtube.com
2020-08-13 12:33:35 -04:00
Matt Baer
849e5b8503
Merge pull request #330 from writeas/post-signatures
...
Support post signatures
Ref T582
2020-07-30 11:53:27 -04:00
Matt Baer
6dbc753ecb
Merge branch 'develop' into gopher
2020-07-23 11:47:49 -04:00
Matt Baer
a25664bb97
Support post signatures
...
This enables users to add a signature to all blog posts, and update it from a single location.
Requires database migration with: writefreely db migrate
Closes T582
2020-06-23 16:24:45 -04:00
Matt Baer
507acc7e1c
Support AP-style mentions of centralized social media accounts
...
This allows users to mention users on the following non-ActivityPub
social media sites:
- twitter.com
- medium.com
It also adds missing error handling in federatePost().
2020-06-08 13:50:43 -04:00
Matt Baer
cceea03076
Ignore "collation mix" errors in GetCollectionRedirect()
2020-06-08 13:37:02 -04:00
prichier
724ab34006
Fix: option name from allow_logout to allow_disconnect
2020-06-06 23:52:26 +02:00
prichier
fe7ff38bd8
Manage generic Oauth buttons on Account Settings
...
Add generic Oauth allow_logout option
2020-05-31 04:09:14 +02:00
Matt Baer
5400f416c0
Reduce db calls on normal invite-based signup
...
This removes an unnecessary database call after creating a user, and documents `db.CreateUser()` to make it clear that extra calls are unnecessary.
2020-04-20 18:21:01 -04:00
Matt Baer
ca4a576c31
Support OAuth registration with invite code
...
This adds any OAuth login buttons to the invite signup page, stores the invite code for the flow duration, and associates the new user with it once successfully registered.
It enables invite-only instances with OAuth-based registration.
2020-04-20 18:18:23 -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
1d25b38eb7
Merge pull request #282 from writeas/patch-ap-mentions
...
Clean up ActivityPub mentions
2020-03-27 09:07:57 -04:00
Matt Baer
cf4f08b264
Merge branch 'develop' into T713-oauth-account-management
2020-03-19 12:02:33 -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
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
Kyle Robbertze
c292512b9d
add Gitlab OAuth
2020-03-12 10:50:55 +02: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
7fe281df69
Use NULL for new attach_user_id column
...
Ref T713
2020-02-10 15:24:39 -05:00
Matt Baer
f846cada4b
Merge branch 'develop' into T713-oauth-account-management
2020-02-09 14:05:12 -05:00
Matt Baer
f70c1dfaa5
Merge branch 'develop' into rename-account-suspend
2020-02-09 11:14:51 -05:00
Matt Baer
468bbf2187
Merge branch 'develop' into rename-account-suspend
2020-02-09 11:14:14 -05:00
Matt Baer
1a10bb3ed6
Merge pull request #252 from writeas/fix-mix-of-collations
...
Restrict /invite/{code} route to valid chars
2020-02-08 15:25:15 -05:00
Matt Baer
af14bcbb78
Clean up oauth_users table on account deletion
...
Ref T319
2020-02-08 13:51:38 -05:00
Matt Baer
c9faff178d
Don't float posts on account deletion
...
Ref T319
2020-02-08 13:51:14 -05:00
Matt Baer
9d360f0e41
Merge branch 'develop' into T319-delete-account
2020-02-08 13:42:46 -05:00
Matt Baer
9589612d0e
Add TODOs for improving GetProfilePageFromHandle()
2020-02-08 13:05:54 -05:00
Matt Baer
bb63e64883
Clean up getProfilePageFromHandle
...
- Export the func
- Remove commented-out code
- Use log, not fmt for debug messages
- Remove named return parameters
- Use standard var naming schemes
- Fix spacing in queries and remove unnecessary chars
2020-02-08 12:10:47 -05:00
Matt Baer
68d63d3fef
Merge branch 'develop' into activitypub-mentions
2020-02-08 11:51:18 -05:00
Matt Baer
51700cc7da
Ignore "mix of collations" error on invite SELECT
...
This adds the `isIgnorableError` method and calls it when error checking
in `GetUserInvite()`, returning "not found" if the rror comes up.
2020-01-30 10:36:29 +01:00
Nick Gerakines
c0317b4e93
Implemented oauth attach functionality, oauth detach functionality, and required data migration. T713
2020-01-15 13:16:59 -05:00
Nick Gerakines
9170c84617
Merged in final changes from PR 225 into T705-oauth-slack. T710
2019-12-31 11:48:08 -05:00
Nick Gerakines
b5f716135b
Changed oauth table names per PR feedback. T705
2019-12-31 11:28:05 -05:00
Nick Gerakines
cf87ae9096
Code cleanup in prep for PR. T710
2019-12-30 13:32:06 -05:00
Nick Gerakines
462f87919a
Feature complete on MVP slack auth integration. T710
2019-12-28 15:15:47 -05:00
Nick Gerakines
13121cb266
Merging T705-oauth into T710-oauth-slack. T705,T710
2019-12-27 13:40:11 -05:00
Nick Gerakines
4266154749
Code cleanup from PR 255 feedback. T705
2019-12-27 13:35:48 -05:00
Nick Gerakines
bf3b6a5ba0
Unit tests, integration testing, and code cleanup for oauth support. Part of T705.
2019-12-23 14:30:32 -05:00
Nick Gerakines
7a0863f71b
Added oauth handlers and tests with mocks. Part of T705.
2019-12-19 11:51:19 -05:00
Matt Baer
d8df15855c
Merge branch 'develop' into activitypub-mentions
2019-11-26 13:19:20 -05:00
Rob Loranger
7e014ca659
Rename Suspend status to Silence
...
This changes all variables and functions from using Suspend{ed} to using
Silence{d} as well as documentation, errors and logging.
2019-11-11 15:25:19 -08:00
Matt Baer
7f96e8c384
Rename UserSuspended to UserSilenced
...
Some of the work needed to have the backend match user-facing wording.
Ref T661
2019-11-12 00:41:25 +09:00
Matt Baer
f7550a0da8
Change more suspension check logic
...
From u.Status == UserSuspended to u.IsSuspended()
Ref T661
2019-11-12 00:04:36 +09:00