Commit graph

359 commits

Author SHA1 Message Date
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
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
dependabot[bot]
455c10b24c
Bump github.com/microcosm-cc/bluemonday from 1.0.16 to 1.0.17 (#1634)
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.16...v1.0.17)

---
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>
2021-12-31 09:39:21 -08:00
dependabot[bot]
8b1e8aabcf
Bump github.com/mattn/go-sqlite3 from 1.14.9 to 1.14.10 (#1632)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.9 to 1.14.10.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.9...v1.14.10)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  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>
2021-12-30 09:17:04 -08:00
dependabot[bot]
1d01523eb1
Bump github.com/shirou/gopsutil (#1574)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 3.21.10+incompatible to 3.21.11+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.10...v3.21.11)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
  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>
2021-12-02 10:49:32 -08:00
dependabot[bot]
35482a62ba
Bump github.com/yuin/goldmark from 1.4.3 to 1.4.4 (#1532)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.3...v1.4.4)

---
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>
2021-11-16 09:52:14 -08:00
dependabot[bot]
1099a3c3ba
Bump github.com/aws/aws-sdk-go from 1.41.0 to 1.42.0 (#1517)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.41.0 to 1.42.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.41.0...v1.42.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>
2021-11-09 09:17:12 -08:00
dependabot[bot]
3c553d127b
Bump github.com/yuin/goldmark from 1.4.2 to 1.4.3 (#1515)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.2...v1.4.3)

---
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>
2021-11-08 10:20:55 -08:00
dependabot[bot]
1c982f21af
Bump github.com/shirou/gopsutil (#1508)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 3.21.9+incompatible to 3.21.10+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.9...v3.21.10)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
  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>
2021-11-01 16:54:56 -07:00
dependabot[bot]
f00f8baad3
Bump github.com/yuin/goldmark from 1.4.1 to 1.4.2 (#1486)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.1...v1.4.2)

---
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>
2021-10-21 09:33:26 -07:00
dependabot[bot]
47b5cbe4b5
Bump github.com/schollz/sqlite3dump from 1.3.0 to 1.3.1 (#1487)
Bumps [github.com/schollz/sqlite3dump](https://github.com/schollz/sqlite3dump) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/schollz/sqlite3dump/releases)
- [Commits](https://github.com/schollz/sqlite3dump/compare/v1.3.0...v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/schollz/sqlite3dump
  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>
2021-10-21 09:32:52 -07:00
dependabot[bot]
d2c200b77b
Bump github.com/microcosm-cc/bluemonday from 1.0.15 to 1.0.16 (#1479)
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.15...v1.0.16)

---
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>
2021-10-19 23:08:14 -07:00
dependabot[bot]
166ebecdae
Bump github.com/mattn/go-sqlite3 from 1.14.8 to 1.14.9 (#1480)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.8 to 1.14.9.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.8...v1.14.9)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  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>
2021-10-19 22:33:53 -07:00
dependabot[bot]
8739550818
Bump github.com/aws/aws-sdk-go from 1.40.0 to 1.41.0 (#1469)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.0 to 1.41.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.40.0...v1.41.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>
2021-10-12 11:08:45 -07:00
Gabe Kangas
f0bd7d2528
Replace pkger with go:embed for bundling the admin. Closes #844 (#1464)
* Replace pkger with go:embed for bundling the admin. Closes #844

* Remove references to pkged.go

* Point tests to use an updated version of Go

* Add comment to new exported function

* Cleanup

* Add a dummy pkged.go to alert people to stop using it.

* Add simple browser test to make sure the admin is available and renders

* Don't panic
2021-10-11 14:56:00 -07:00
dependabot[bot]
cee186bc0a
Bump github.com/shirou/gopsutil (#1450)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 3.21.8+incompatible to 3.21.9+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.8...v3.21.9)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
  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>
2021-10-04 16:29:01 -07:00
dependabot[bot]
a46a41ed23
Bump golang.org/x/mod from 0.5.0 to 0.5.1 (#1425)
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.5.0...v0.5.1)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  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>
2021-09-27 17:20:20 -07:00
dependabot[bot]
9e33a1bff2
Bump github.com/yuin/goldmark from 1.4.0 to 1.4.1 (#1399)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.0...v1.4.1)

---
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>
2021-09-13 14:18:09 -07:00
dependabot[bot]
3197b22dbb
Bump github.com/shirou/gopsutil (#1369)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 3.21.7+incompatible to 3.21.8+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.7...v3.21.8)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
  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>
2021-09-01 11:50:16 -07:00
dependabot[bot]
9e4bf2dc50
Bump golang.org/x/mod from 0.4.2 to 0.5.0 (#1326)
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.4.2...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  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>
2021-08-16 12:47:07 -07:00
dependabot[bot]
63eeefd36a
Bump github.com/shirou/gopsutil (#1289)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 3.21.6+incompatible to 3.21.7+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.6...v3.21.7)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
  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>
2021-08-11 22:42:16 -07:00
Gabe Kangas
b6f68628c0
Chat refactor + persistent backing chat users (#1163)
* First pass at chat user registration and validation

* Disable chat if the user is disabled/blocked or the server hits max connections

* Handle dropping sockets if chat is disabled

* Fix origin in automated chat test

* Work for updated chat moderation

* Chat message markdown rendering and fix tests

* Put /api/chat behind a chat user access token. Closes #1085

* Reject blocked username changes

* More WIP moderation

* Defer configuring chat until we know if it is enabled. Closes #1135

* chat user blocking. Closes #1096

* Add tests around user access for #1096

* Add external integration chat message API + update integration auth middleware to pass along integration name. Closes #1092

* Delete old chat messages from db as to not hold on to excessive data. Closes #1152

* Add schema migration for messages. Closes #1155

* Commit updated API documentation

* Add chat load test

* Shared db mutex and db optimizations

* Simplify past display name handling

* Use a new test db for each test run

* Wire up the external messages actions + add tests for them

* Move access tokens to be actual users

* Run message pruning at launch + fix comparison

* Do not return API users in disabled users response

* Fix incorrect highlighting. Closes #1160

* Consolidate user table statements

* Set the max process connection limit to 70% of maximum

* Fix wrong old display name being returned in name change event

* Delete the old chat server files

* Wire back up the webhooks

* Remove unused

* Invalidate user cache on changes

* Do not send rendered body as RawBody

* Some cleanup

* Standardize names for external API users to ExternalAPIUser

* Do not log token

* Checkout branch when building admin for testing

* Bundle in dev admin for testing

* Some cleanup

* Cleanup js logs

* Cleanup and standardize event names

* Clean up some logging

* Update API spec. Closes #1133

* Commit updated API documentation

* Change paths to be better named

* Commit updated API documentation

* Update admin bundle

* Fix duplicate event name

* Rename scope var

* Update admin bundle

* Move connected clients controller into admin package

* Fix collecting usernames for autocomplete purposes

* No longer generate username when it is empty

* Sort clients and users by timestamp

* Move file to admin controller package

* Swap, so the comments stay correct

Co-authored-by: Jannik <jannik@outlook.com>

* Use explicit type alias

Co-authored-by: Jannik <jannik@outlook.com>

* Remove commented code.

Co-authored-by: Jannik <jannik@outlook.com>

* Cleanup test

* Remove some extra logging

* Add some clarity

* Update dev instance of admin for testing

* Consolidate lines

Co-authored-by: Jannik <jannik@outlook.com>

* Remove commented unused vars

Co-authored-by: Jannik <jannik@outlook.com>

* Until needed do not return IP address with client list

* Fix typo of wrong var

* Typo led to a bad test. Fix typo and fix test.

* Guard against the socket reconnecting on error if previously set to shutdown

* Do not log access tokens

* Return success message on enable/disable user

* Clean up some inactionable error messages. Sent ban message. Sort banned users.

* fix styling for when chat is completely disabled

* Unused

* guard against nil clients

* Update dev admin bundle

* Do not unhide messages when unblocking user just to be safe. Send removal action from the controller

* Add convinience function for getting active connections for a single user

* Lock db on these mutations

* Cleanup force disconnect using GetClientsForUser and capture client reference explicitly

* No longer re-showing banned user messages for safety. Removing this test.

* Remove no longer needed comment

* Tweaks to forbidden username handling.

- Standardize naming to not use "block" but "forbidden" instead.
- Pass array over the wire instead of string.
- Add API test
- Fix default list incorrectly being appended to custom list.

* Logging cleanup

* Update dev admin bundle

* Add an artificial delay in order to visually see message being hidden when testing

* Remove the user cache as it is a premature optimization

* When connected to chat let the user know their current user details to sync the username in the UI

* On connected send current display name back to client.
- Move name change out of chat component.
- Add additional event type constants.

* Fix broken workflow due to typo

* Troubleshoot workflow

* Bump htm from 3.0.4 to 3.1.0 in /build/javascript (#1181)

* Bump htm from 3.0.4 to 3.1.0 in /build/javascript

Bumps [htm](https://github.com/developit/htm) from 3.0.4 to 3.1.0.
- [Release notes](https://github.com/developit/htm/releases)
- [Commits](https://github.com/developit/htm/compare/3.0.4...3.1.0)

---
updated-dependencies:
- dependency-name: htm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Run npm run build and update libraries

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>

* Commit updated Javascript packages

* Re-send current user info when a rejected name change takes place

* All socket writes should be through the send chan and not directly

* Seed the random generator

* Add keys and indexes to users table

* a util to generate consistent emoji markup

* console clean up

* mod tidy

* Commit updated API documentation

* Handle the max payload size of a socket message.
- Only close socket if x2 greater than the max size.
- Send the user a message if a message is too large.
- Surface the max size in bytes in the config.

* Update admin bundle

* Force all events to be sent in their own socket message and do not concatinate in a single message

* Update chat embed to register for access token

* Use a different access token for embed chat

* Update the chat message bubble background color to be bolder

* add base tag to open links in new window, closes #1220

* Support text input of :emoji: in chat (#1190)

* Initial implementation of emoji injection

* fix bookkeeping with multiple emoji

* make the emoji lookup case-insensitive

* try another solution for Caretposition

* add title to emojis

minor refactoring

* bind moji injection to InputKeyUp

* simplify the code

replace all found emojis

* inject emoji if the modifer is released earlier

* more efficient emoji tag search

* use json emoji.emoji as url

* use createEmojiMarkup()

* move emojify() to chat.js

* emojify on paste

* cleanup emoji titles in paste

* update inputText in InputKeyup

* mark emoji titles with 2*zwnj

this way paste cleanup will not interfere with text which include zwnj

* emoji should not change the inputText

* Do not show join messages when chat is offline. Closes #1224
- Show stream starting/ending messages in chat.
- When stream starts show everyone the welcome message.

* Force scrolling chat to bottom after history is populated regardless of scroll position. Closes https://github.com/owncast/owncast/issues/1222

* use maxSocketPayloadSize to calculate total bytes of message payload (#1221)

* utilize maxSocketPayloadSize from config; update chatInput to calculate based on that value instead of text value; remove usage of inputText for counting

* add a buffer to account for entire websocket payload for message char counting; trim nbsp;'s from ends of messages when calculating count

Co-authored-by: Gabe Kangas <gabek@real-ity.com>

Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: Jannik <jannik@outlook.com>
Co-authored-by: Ginger Wong <omqmail@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Meisam <39205857+MFTabriz@users.noreply.github.com>
2021-07-19 19:22:29 -07:00