Commit graph

376 commits

Author SHA1 Message Date
renovate[bot]
46f2ebb841
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.130 2022-11-03 21:00:49 +00:00
renovate[bot]
799883b553
fix(deps): update module github.com/shirou/gopsutil/v3 to v3.22.10 2022-11-02 10:06:49 +00:00
renovate[bot]
9eeefe5f57
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.128 2022-11-02 07:47:41 +00:00
renovate[bot]
df7ae71591
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.125 2022-10-28 04:29:43 +00:00
renovate[bot]
b12df3994a
fix(deps): update module golang.org/x/mod to v0.6.0 2022-10-27 10:40:15 +00:00
renovate[bot]
cfc0a036f6
fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.16 2022-10-27 02:28:51 +00:00
renovate[bot]
0a754f2db8
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.124 (#2268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-26 19:27:29 -07:00
renovate[bot]
8e43b9d5d1
fix(deps): update module golang.org/x/time to v0.1.0 2022-10-19 06:15:40 +00:00
renovate[bot]
90b01a6447
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.118 2022-10-19 05:45:39 +00:00
renovate[bot]
b63e3ba335
fix(deps): update golang.org/x/net digest to cb67ada 2022-10-19 05:33:43 +00:00
renovate[bot]
2f0106149f
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.114 2022-10-13 02:27:00 +00:00
renovate[bot]
e565b84955
fix(deps): update golang.org/x/net digest to 0b7e1fb 2022-10-12 23:44:54 +00:00
Matthew Donoughe
10055664bb
add tests for webhook events (#2180)
* add tests for webhook events

* atomic.Uint32 is not in Go 1.18
2022-10-09 22:55:54 -07:00
renovate[bot]
600f7c3ea1
fix(deps): update module github.com/microcosm-cc/bluemonday to v1.0.21 2022-10-04 20:50:18 +00:00
renovate[bot]
8339b81a85
fix(deps): update module github.com/shirou/gopsutil/v3 to v3.22.9 2022-10-04 16:36:20 +00:00
renovate[bot]
db4919ad28
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.110 2022-10-04 10:06:16 +00:00
renovate[bot]
ff26213925
fix(deps): update golang.org/x/net digest to bcab684 2022-10-04 06:54:45 +00:00
renovate[bot]
20f1b9f8ae
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.109 (develop) (#2147)
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.109

* Commit updated API documentation

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Owncast <owncast@owncast.online>
2022-10-02 11:24:31 -07:00
renovate[bot]
e20b092aa2 fix(deps): update module github.com/yuin/goldmark to v1.5.2 2022-09-30 16:26:14 +00:00
renovate[bot]
0563a220ee
fix(deps): update module github.com/aws/aws-sdk-go to v1.44.107 2022-09-29 01:52:54 +00:00
renovate[bot]
99e29e14d3
fix(deps): update golang.org/x/time digest to f3bd1da 2022-09-29 01:43:00 +00:00
renovate[bot]
427c6f94cd
fix(deps): update golang.org/x/net digest to f486391 2022-09-28 23:27:00 +00:00
renovate[bot]
1332e1040a
Update module github.com/aws/aws-sdk-go to v1.44.99 (#2122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-15 21:36:27 -07:00
renovate[bot]
9242585225
Update golang.org/x/net digest to bea034e 2022-09-15 22:36:28 +00:00
renovate[bot]
5f1ffd570f Update module github.com/shirou/gopsutil/v3 to v3.22.8 2022-09-05 05:40:06 +00:00
renovate[bot]
dfdd78df7c
Update module github.com/yuin/goldmark to v1.4.14 2022-09-05 03:49:05 +00:00
renovate[bot]
79f171e24d
Update module github.com/microcosm-cc/bluemonday to v1.0.20 2022-09-05 01:24:20 +00:00
renovate[bot]
f89bfb9c87
Update module github.com/aws/aws-sdk-go to v1.44.91 2022-09-05 00:01:00 +00:00
renovate[bot]
2cc7f88cfc
Update golang.org/x/net digest to 83b083e 2022-09-04 20:25:23 +00:00
renovate[bot]
b1376497ca
Update module github.com/aws/aws-sdk-go to v1.44.82 2022-08-23 02:08:26 +00:00
renovate[bot]
757b1beb2f
Update module github.com/aws/aws-sdk-go to v1.44.81 2022-08-20 05:30:34 +00:00
renovate[bot]
e22ae65053
Update module github.com/aws/aws-sdk-go to v1.44.78 2022-08-16 21:11:49 +00:00
renovate[bot]
91c32e69d7
Update module github.com/mattn/go-sqlite3 to v1.14.15 2022-08-16 16:32:57 +00:00
renovate[bot]
03acfb83fc
Update module github.com/aws/aws-sdk-go to v1.44.77 2022-08-16 16:24:08 +00:00
renovate[bot]
70aa31153f
Update module github.com/aws/aws-sdk-go to v1.44.76 (#2030)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-14 10:46:02 -07:00
renovate[bot]
19cb230978
Update golang.org/x/net digest to 3211cb9 2022-08-13 23:20:58 +00:00
renovate[bot]
83bec0922d
Update module github.com/prometheus/client_golang to v1.13.0 2022-08-10 06:08:33 +00:00
renovate[bot]
ea04f6cada
Update module github.com/oschwald/geoip2-golang to v1.8.0 2022-08-10 03:38:34 +00:00
renovate[bot]
4be00046d8
Update module github.com/aws/aws-sdk-go to v1.44.72 2022-08-10 00:29:05 +00:00
renovate[bot]
d56c439684
Update golang.org/x/net digest to 07c6da5 2022-08-09 21:09:38 +00:00
renovate[bot]
c08c86bfd9
Update module github.com/shirou/gopsutil/v3 to v3.22.7 2022-08-04 11:26:14 +00:00
renovate[bot]
824c823684
Update golang.org/x/net digest to 0bcc04d 2022-08-04 05:25:33 +00:00
renovate[bot]
38e833233a
Update module github.com/aws/aws-sdk-go to v1.44.69 (#2027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-03 22:24:26 -07:00
renovate[bot]
fef0cd722e Update module github.com/yuin/goldmark to v1.4.13 2022-07-23 13:13:42 +00:00
renovate[bot]
7dfb0c7025 Update module github.com/sirupsen/logrus to v1.9.0 2022-07-23 11:05:33 +00:00
renovate[bot]
bd03e668cd Update module github.com/mattn/go-sqlite3 to v1.14.14 2022-07-23 05:56:54 +00:00
renovate[bot]
8ac594f7ad
Update module github.com/microcosm-cc/bluemonday to v1.0.19 2022-07-23 01:31:05 +00:00
renovate[bot]
bb1e273d11
Update module github.com/aws/aws-sdk-go to v1.44.61 2022-07-22 23:56:12 +00:00
renovate[bot]
3b9d5908e4
Update golang.org/x/time digest to e5dcc9c 2022-07-22 21:38:59 +00:00
renovate[bot]
2300c2fae7
Update golang.org/x/net digest to a158d28 2022-07-22 21:17:08 +00:00
renovate[bot]
fb2cad86f8
Update module github.com/shirou/gopsutil/v3 to v3.22.6 2022-07-19 02:06:37 +00:00
renovate[bot]
8866fe46f4
Update golang.org/x/time digest to 579cf78 2022-07-18 23:56:53 +00:00
renovate[bot]
e2e4707c82
Update github.com/teris-io/shortid digest to 71ec9f2 2022-07-18 22:00:15 +00:00
renovate[bot]
b4da968499
Update golang.org/x/net digest to 1185a90 2022-07-18 19:41:26 +00:00
Renovate Bot
5c795afe27
Update golang.org/x/net digest to c690dde 2022-06-07 05:51:52 +00:00
Renovate Bot
ceb2d50403
Update module github.com/aws/aws-sdk-go to v1.44.28 2022-06-06 22:24:54 +00:00
Renovate Bot
251c773661
Update module github.com/yuin/goldmark to v1.4.12 2022-06-06 14:38:23 +00:00
Renovate Bot
0c1e00a643
Update golang.org/x/net digest to c960675 2022-06-06 05:52:16 +00:00
Renovate Bot
2a01b20914
Update module github.com/prometheus/client_golang to v1.12.2 2022-06-04 11:34:03 +00:00
Renovate Bot
824e0c1599
Update module github.com/mattn/go-sqlite3 to v1.14.13 2022-06-04 05:21:55 +00:00
Renovate Bot
a8fff63500
Update module github.com/aws/aws-sdk-go to v1.43.44 2022-04-22 09:57:24 +00:00
Renovate Bot
d351dc3be1
Update golang.org/x/net digest to 1d1ef93 2022-04-22 04:44:19 +00:00
Gabe Kangas
b835de2dc4
IndieAuth support (#1811)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* don't redirect unless a URL is present

avoids redirecting to `undefined` if there was an error

* improve error message if owncast server URL isn't set

* fix IndieAuth PKCE implementation

use SHA256 instead of SHA1, generates a longer code verifier (must be 43-128 chars long), fixes URL-safe SHA256 encoding

* return real profile data for IndieAuth response

* check the code verifier in the IndieAuth server

* Linting

* Add new chat settings modal anad split up indieauth ui

* Remove logging error

* Update the IndieAuth modal UI. For #1273

* Add IndieAuth repsonse error checking

* Disable IndieAuth client if server URL is not set.

* Add explicit error messages for specific error types

* Fix bad logic

* Return OAuth-keyed error responses for indieauth server

* Display IndieAuth error in plain text with link to return to main page

* Remove redundant check

* Add additional detail to error

* Hide IndieAuth details behind disclosure details

* Break out migration into two steps because some people have been runing dev in production

* Add auth option to user dropdown

Co-authored-by: Aaron Parecki <aaron@parecki.com>
2022-04-21 14:55:26 -07:00
Renovate Bot
12c0882248
Update module github.com/aws/aws-sdk-go to v1.43.43 2022-04-21 13:20:58 +00:00
Renovate Bot
3484d6d8be
Update golang.org/x/net digest to 1850ba1 2022-04-21 06:47:39 +00:00
Renovate Bot
abcfdfa8a0
Update golang.org/x/net digest to a630d4f 2022-04-20 05:48:47 +00:00
Renovate Bot
a825a831fe
Update module github.com/aws/aws-sdk-go to v1.43.41 2022-04-15 23:14:44 +00:00
Renovate Bot
03fc602935
Update module github.com/aws/aws-sdk-go to v1.43.39 2022-04-13 22:58:31 +00:00
Renovate Bot
5c8d591f0a
Update module github.com/aws/aws-sdk-go to v1.43.38 2022-04-12 22:04:14 +00:00
Renovate Bot
ae25019033
Update golang.org/x/time digest to 583f2d6 2022-04-12 06:48:54 +00:00
Renovate Bot
b44c2bdf81
Update golang.org/x/net digest to 290c469 2022-04-12 06:17:31 +00:00
Renovate Bot
2a4e7fbbaf
Update module github.com/aws/aws-sdk-go to v1.43.37 2022-04-12 04:23:51 +00:00
renovate[bot]
cf5f9271df
Update module github.com/aws/aws-sdk-go to v1.43.36 (#1820)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-10 00:56:03 -07:00
Renovate Bot
db278308dc
Update module github.com/shirou/gopsutil/v3 to v3.22.3 2022-04-10 07:23:29 +00:00
Renovate Bot
4fea5954d1
Update golang.org/x/net digest to aac1ed4 2022-04-08 03:03:58 +00:00
Gabe Kangas
e4589a4462
Experiment with supporting h2c 2022-04-07 11:43:26 -07:00
renovate[bot]
af64e88678
Update module github.com/aws/aws-sdk-go to v1.43.31 (#1813)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 11:43:37 -07:00
Renovate Bot
91974a8f88
Update module github.com/oschwald/geoip2-golang to v1.7.0 2022-04-02 02:55:32 +00:00
Renovate Bot
7cb6efe457
Update module github.com/amalfra/etag to v1 2022-04-02 01:48:02 +00:00
Renovate Bot
98463fdb34
Update module github.com/mattn/go-sqlite3 to v1.14.12 2022-03-30 03:57:22 +00:00
Renovate Bot
d972a9ee8a
Update module github.com/SherClockHolmes/webpush-go to v1.2.0 2022-03-28 20:22:03 +00:00
Renovate Bot
042431d9a3 Update module github.com/aws/aws-sdk-go to v1.43.26 2022-03-28 16:41:33 +00:00
Renovate Bot
fd6daff1c9
Update module github.com/yuin/goldmark to v1.4.11 2022-03-26 08:33:10 +00:00
Gabe Kangas
7b4110467b
mod tidy 2022-03-25 19:08:38 -07:00
Gabe Kangas
4a17f30da8
Outbound live stream notifications (#1663)
* First pass at browser, discord, twilio notifications

* Commit updated Javascript packages

* Remove twilio notification support

* Email notifications/smtp support

* Fix Firefox notification support, remove chrome checks

* WIP more email work

* Add support for twitter notifications

* Add stream title to discord and twitter notifications

* Update notification registration modal

* Fix hide/show email section

* Commit updated API documentation

* Commit updated Javascript packages

* Fix post-rebase missing var

* Remove unused var

* Handle unsubscribe errors for browser push

* Standardize email config prop names

* Allow overriding go live email template

* Some notifications cleanup

* Commit updated Javascript packages

* Remove email/smtp/mailjet support

* Remove more references to email notifications

Co-authored-by: Owncast <owncast@owncast.online>
2022-03-18 13:33:23 -07:00
Renovate Bot
e805f48637 Update github.com/nareix/joy5 digest to 2c912ca 2022-03-14 16:58:26 +00:00
Renovate Bot
7cbc174af6
Update golang.org/x/time digest to 0e9765c 2022-03-14 13:09:47 +00:00
Renovate Bot
165771ea8e
Update github.com/teris-io/shortid commit hash to e59966e 2022-03-08 00:38:47 +00:00
Gabe Kangas
d6aa8b5d7c
Bump gopsutil to v3 2022-03-07 08:45:49 -08:00
Gabe Kangas
1ed1cc01eb
Persist time series viewer metrics (#1752)
* WIP persisting time series viewer metrics. Closes #1478

* Remove unused var, move around initial collection
2022-03-06 19:43:57 -08:00
Gabe Kangas
92041c4c23
Add Prometheus for some Owncast metrics (#1744)
* Add Prometheus for some Owncast metrics. Closes #1303

* Wrap prometheus metrics endpoint in admin middleware
2022-03-06 17:26:52 -08:00
dependabot[bot]
74c126de21
Bump github.com/yuin/goldmark from 1.4.6 to 1.4.7 (#1742)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.6 to 1.4.7.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.6...v1.4.7)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 07:36:33 -08:00
dependabot[bot]
d40beafae1
Bump github.com/aws/aws-sdk-go from 1.42.0 to 1.43.0 (#1741)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-17 10:02:20 -08:00
dependabot[bot]
a906f462cd
Bump github.com/gorilla/websocket from 1.4.2 to 1.5.0 (#1738)
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.2...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 08:43:13 -08:00
dependabot[bot]
55d4074941
Bump github.com/yuin/goldmark from 1.4.5 to 1.4.6 (#1734)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.5...v1.4.6)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 09:54:10 -08:00
dependabot[bot]
0ca0620aef
Bump github.com/yuin/goldmark from 1.4.4 to 1.4.5 (#1724)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.4 to 1.4.5.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.4...v1.4.5)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-08 09:03:15 -08:00
dependabot[bot]
a70d1fdaa1
Bump github.com/microcosm-cc/bluemonday from 1.0.17 to 1.0.18 (#1725)
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.17...v1.0.18)

---
updated-dependencies:
- dependency-name: github.com/microcosm-cc/bluemonday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-08 09:02:43 -08:00
dependabot[bot]
b884cb67d0
Bump github.com/oschwald/geoip2-golang from 1.5.0 to 1.6.1 (#1707)
Bumps [github.com/oschwald/geoip2-golang](https://github.com/oschwald/geoip2-golang) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/oschwald/geoip2-golang/releases)
- [Commits](https://github.com/oschwald/geoip2-golang/compare/v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/oschwald/geoip2-golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 09:24:15 -08:00
Gabe Kangas
7b7bbe405b
mod tidy 2022-01-27 14:54:49 -08:00
Gabe Kangas
045a0a2afd
Social features / ActivityPub federation (#1629)
* Support webfinger requests for the live account. Closes https://github.com/owncast/owncast/issues/1193

* Support for actor requests. Returns response for live actor. Closes https://github.com/owncast/owncast/issues/1203

* Handle follow and unfollow requests. Closes
https://github.com/owncast/owncast/issues/1191 and https://github.com/owncast/owncast/issues/1205 and https://github.com/owncast/owncast/issues/1206 and https://github.com/owncast/owncast/issues/1194

* Add basic support for sending out text activities. For https://github.com/owncast/owncast/issues/1192

* Some error handling and passing of dynamic local account names.

* Add hardcoded example image attachment to test post

* Centralize the map of accounts and inboxes

* No longer disable the preview generator based on YP toggle

* Send a federated message to followers when stream starts. For https://github.com/owncast/owncast/issues/1192

* Placeholder for attaching tags

* Add image description

* Save and get to outbox persistence. Return using outbox endpoint for actor

* Pass payloads to be handled through the gochan

* Handle undo follow requests explitly, not all undo requests

* Add API for manually sending simple federated messages. Closes #1215

* Verify inbox requests. Closes #1321

* Add route to fetch a single AP object by ID. For #1329

* Add responses to fediverse nodeinfo requests

* Set and get federation config values for admin

* Handle host-meta requests

* Do not send out message if disabled. Use saved go live message.

* Require AP-compatible content types for AP-related requests

* Rename ap models to apmodels for clarity

* Change how content type matching takes place.

* io -> ioutil

* Add stub delete activity callback

* Handle likes and announces to surface engagement in chat. Part of #1229

* Append url to go live posts

* Do not require specific content types for nodeinfo requests

* Add follow engagement chat message via AP

* add owncast user-agent to requests

* Set note visibility to public (for now)

* Fix saving/fetching a single object

* Add support for x-nodeinfo2 responses

* Point to the dev admin branch for ap

* Bundle in dev admin for testing

* Add error logging

* Add AP middleware back

* Point to the new external compatible logo endpoint

* Clean up more AP logging to help testing

* Tweak go live text and link hashtags

* Fix bug in fetching init time

* Send update actor activities when server details/profile is updated

* Add federation config overview to web client config

* Add additional actor properties

* Make the AP middleware checking more flexible when looking at types

* First pass at remote fediverse follow flow. For #1371

* Added a basic AP actor followers endpoint

* WIP client followers API

* Add profile-page reference to webfinger response

* Add aliases to webfinger response

* Fix content-type returned to be expected activitypub+json

* First pass at followers api

* Point at local dev copy of go-fed/activity

* Add custom toot Hashtag objects to posts

* Store additional user details to followers table

* Fix AP followers endpoint. Closes #1204

* Add owncast hashtag as an invisible tag to go live posts

* Reject AP requests when it is disabled

* Add actor util for generating full account user from person object

* Verify inbox requests before performing any other work

* Accept actor update requests

* Fix linter errors in federation branch

* Migrate AP SQL to sqlc for type safe queries

* Use the @unclearParadigm REST parameter helper

* Fix verifying post ID on AP engagement

* WIP privacy/request approval

* Style the remote follow modal

* First pass at a followers list component w/ mock data. #1370

* Revert "Use the @unclearParadigm REST parameter helper"

This reverts commit c8af8a413f.

* Fix get followers API

* Add support for requiring approval. Closes https://github.com/owncast/owncast/issues/1208

* Handle Applications as Actors partly for PeerTube support

* add temp todo list

* check route on load, this might change later

* style followers

* account for just 1 tab case

* Remove mock data. Allow showing follow button even when there are no external actions defined

* Point to actual followers API

* Support fallback img for follower views

* Remove duplicate verification. Add some additional verbose logging

* Bundle dev admin

* Add type to host-meta webfinger template response

* Tweak remote follow modal content

* WIP federation followers refactor

* Do not send pointer to middleware

* Update admin

* Add setting for toggling displaying fediverse engagement. Closes #1404

* Add in-development admin

* Do not enable cors on admin followers api

* Add db migration for updating messages table

* Enable empty string go live messages to disable

* Remove debug messages

* Rework some ActivityPub handling.

Create new Actor->Person handling.
Create new Actor->Service handling.
Add engagement handlers to send chat events and store event objects.
Store inbound activities to new ap_inbound_activities table.

* Support federated engagement events.

Store them in the messages table and surface them via chat events.

* Support federated event engatement in the chat

* Tweak web UI followers handling

* Point go.mod at remote fork instead of local

* Update admin

* Merged in develop. Couple fixes

* Update dev admin

* Update fedi engagement posts.

- Fix incorrect action text.
- Add action icons.

* Set public as to instead of cc for ap msg

* Updated styling for federated actions in chat

* Add support for blocking federated domains. Closes #1209

* Force checking of https in verify step

* Update dev admin

* Return user scopes in chat history api. Closes #1586

* Update dev admin

* Add AP outbound request worker pool. Closes #1571

* Disable (temporarily?) owncast tag on AP posts

* Consolidate creating activity+notes in outbound AP messages

* Add inbox worker pool. Closes #1570

* Update dev admin bundle

* Clean up some logs

* Re-enable inbound verfication

* Save full IRI to outbox instead of path

* Reject if full IRI is not found in outbox

* Use full ActivityPub user account in chat event

* Fix and expand follower APIs

- Add missing IDs to AP follower endpoints
- Split AP follower endpoints into initial request and pages.
- Support pagination in AP requests.

* Include IRI in error message

* Hide chat toggle when chat is hidden. Closes #1606

* Updates to followers pagination

* Set default go live message

* Remove log

* indirect -> direct import

* Updates for inbound federated event handling.

- Keep track of existing events and reject duplicates.
- Change what is sent to chat for surfing federated engagement.
- Keep track if outbound events are automated "go live" events or not.

* Update chat federated engagement.

* Update dev admin.

* Move from being a person to a bot (service). Closes #1619

* Only set server init date if not already set

* Only save notes to outbox able

* Rework private-mode followers/approvals

* API for returning a list of federated actions for #1573

* Fix too-small follower cells and jumpy tabs. Closes #1616 and closes #1516

* Fix shortcuts getting fired on inputs. Fixes #1489 and #1201

* Add spinner, autoclose + other fixes to follow modal. Fixes #1593

* Fix fetching a single object by IRI

* SendFederationMessage -> SendFederatedMessage

* Autolink and create tag objects from manual posts. Closes #1620

* Update dev admin bundle

* Handle engagement from non-automated/live posts

* Reject federated engagement actions if they do not match a local post

* Update dev admin bundle

* A bunch of cleanup

* Fix unused assignments and logic

* Remove unused function

* Add content warning and sentive content flag if stream is NSFW. Closes #1624

* Disable fetching objects by IRI when in private mode. Closes #1623

* Update the error message of the remote follow dialog. closes #1622

* Update dev admin

* Fix NREs throwing in test content

* Fix query that wasn't properly filtering out hidden messages

* Test against user being disabled instead of message visibility

* Fix automated test NRE

* Update comment

* Adjust federated engagement chat views. Closes #1617

* Add additional index to users table

* Add support for removing followers/requests. Closes #1630

* Reject federated actions from blocked actors. #1631

* Use fallback avatar if it fails to load. Closes #1635

* Fix styling of follower list. Closes #1636

* Add basic blurb stating they should follow the server. Closes #1641

* Update dev admin

* Set default go live message in migration. Closes #1642

* Reset the messages table on 0.0.11 schema migration

* Fix js error with moderation actions. Closes #1621

* Add a bit more clarification on follow modal. Closes #1599

* Remove todos

* Split out actor and domain blocking checks

* Check for errors on default values being set

* Clean up actor rejection due to being blocked

* Update dev admin

* Add colon to error to make it easier to read

* Remove markdown rendering of go live message. Reorganize text. Remove content warning. Closes #1645

* Break out the sort+render messages logic so it can be fired on visibility change. Closes #1643

* Do not send profile updates if federation is disabled

* Save follow references to inbound activities table

* Update dev admin

* Add blocked actor test

* Remove the overloaded term of Follow from social links

* Fix test running in memory only

* Remove "just" in engagement messags

* Replace star with heart for like action.

* Update dev admin

* Explicitly set cc as public

* Remove overly using the stream name in fediverse engagement messages

* Some federated/follow UI tweaks

* Remove explicit cc and bcc as they are not required

* Explicitly set the audience

* Remove extra margin

* Add Join Fediverse button to follow modal. Closes #1651

* Do not allow multiple follows to send multiple events. Closes #1650

* Give events a min height

* Do not allow old posts to be liked/shared. Closes #1652

* Remove value from log message

* Alert followers on private mode toggle

* Ignore clicks to follow button if disabled

* Remove underline from action buttons

* Add moderator icon to join message

* Update admin

* Post-merge remove unused var

* Remove pointing at feature branch

Co-authored-by: Ginger Wong <omqmail@gmail.com>
2022-01-12 13:53:10 -08:00