Commit Graph
62 Commits
Author SHA1 Message Date
MeisamandGitHub db3e20b480 cleanup test/automated/api/publicstatic.test.js (#2533) 2022-12-31 15:10:31 -08:00
MeisamandGitHub 6f97085285 add Github actions linter to Github actions (#2521)
* add actions linter

* fix actions/checkout args

* trigger actions lint on both yml/yaml

...and other possible changes in workflow
2022-12-28 13:21:09 -08:00
MeisamandGitHub 389ba36f15 fix breaking change in #2510 2022-12-28 01:11:04 +01:00
MeisamandGitHub a2c35d3d66 set RemoveNotificationForChanne() log to debug (#2517) 2022-12-27 12:10:42 -08:00
MeisamandGitHub 7c91099461 do not triger bundle web app on docs update (#2510) 2022-12-26 11:30:16 -08:00
MeisamandGitHub c74d5b4f31 add shellcheck to CI (#2478)
* add shellcheck to ci

* test ci

* install bash for shellcheck

* set globstar for bash

* cleanup shell scripts

* do not ignore automated hls tests

* rm legacy build script

* update shell scripts

* cleanup ci

* Fix misspell

* cleanup ci

* fail on curl error in ci
2022-12-25 19:17:13 -08:00
MeisamandGitHub d814ff77ac update SocialLinks module width (#2477) 2022-12-23 13:49:09 -08:00
MeisamandGitHub 7f3f0de8b5 update link for gabek (#2483) 2022-12-23 09:40:10 -08:00
MeisamandGitHub 8f29acb7dd properly detect lowestVariant for system health (#2455) 2022-12-19 23:19:21 -08:00
MeisamandGitHub a7080a1fc1 validate response of federation APIs (#2408)
* validate json responses

* update deps

* tmp disable header check

* log all the webfinger fails

refactor and filter more malformed requests

* don't set incorrect serverURL strings

* test failing through admin api

* fix server url in fedi tests

* check response.text

* validate json/xml response of all apis

test Content-Type of api response and cleanup

* improve logs

* fix rebase

* cleanup json parser in api tests

* mark the api tests performed by admin

* Separate check for reading and format of serverURL

* test /federation/user/ with wrong username in ci
2022-12-10 21:10:10 -08:00
MeisamandGitHub 12ec4b15cd use lib/admin.js functions in api tests (#2419) 2022-12-08 13:46:57 -08:00
MeisamandGitHub fd683f0a72 refactor chatuser api tests (#2416)
* block and unblock ipv6 explicitly

* refactor admin api tests

* use sendAdminPayload() for chatuser tests

* fix sendAdminRequests

* add getAdminResponse() to api test lib/admin.js

* some admin apis don't have response body

* cleanup test/automated/api/chatusers.test.js

* cleanup test/automated/api/chatusers.test.js

use getAdminResponse() to access admin apis
2022-12-08 10:07:54 -08:00
MeisamandGitHub 43560cc65b fix webfinger responses according to the specs (#2397)
* webfinger query with no resource should get 400

* check valid webfinger query

* test webfinger query

... without acct: or with wrong server

* add test for invalid user query from webfinger

* reorder the tests to decouple from state

cleanup
2022-12-07 16:26:06 -08:00
MeisamandGitHub 1558834df2 bump min golang ver to 1.18 (#2412) 2022-12-06 14:31:08 -08:00
a0933da8d1 consider ipv6 in chat user tests (#2415)
Co-authored-by: meisam <meisam@noreply.codeberg.org>
2022-12-06 14:29:05 -08:00
MeisamandGabe Kangas 0a8fc6e8c5 validate Nodeinfo response by schema (#2390)
* rm stable: 'false' from actions/setup-go@v3

* adapt tests from #2369

* set undefined as defaultStreamKey

pass adminpass to sendConfigChangeRequest()

* mv getAdminConfig to api/lib/config.js

* npm install --quiet for automated tests

* refactor tests

separate default values from new ones

* test adminpass change

fix defaultStreamKeys test

* fix defaultStreamKeys

* use getAdminStatus

* mv test/automated/lib/config.js to admin.js

* check default hideViewerCount

cleanup

* test more default options in api

erverName
SServerSummary
yp.instanceUrl
FederationConfig.username

* more testing of default config params

* update reference values for api test
2022-11-29 16:05:44 -08:00
MeisamandGitHub 268af5c20e activate save on s3 bucket change in admin (#2392) 2022-11-29 11:12:06 -08:00
MeisamandGitHub 32ac156588 rm empty strings from services in nodeinfo (#1924) 2022-05-24 09:57:38 -07:00
MeisamandGitHub 10cdf3d9b8 Add “services” and “metadata” to NodeInfo/2.0 (#1922)
* add services to nodeinfo/2.0

* add metadata to Nodeinfo/2.0
2022-05-23 19:35:29 -07:00
MeisamandGitHub 482e1a705a clarify the message for registered usernames (#1909) 2022-05-16 13:05:00 -07:00
MeisamandGitHub b4c798f511 rm FLoC-specific header (#1908)
A big thanks to Google engineers for shaping our dystopia
2022-05-16 11:04:00 -07:00
MeisamandGitHub d0ea430f98 fix the server name (#1907)
the name should match ^[a-z0-9-]+$
2022-05-15 20:07:34 -07:00
MeisamandGitHub 9589c8e11a rename the "Disable chat" switch to a simple "Chat" (#286)
* change chat config lable

* reverse the chat enable UI

* add reversed to toggle switch props
2021-09-10 15:08:15 -07:00
MeisamandGitHub ae1c2d89f0 Check for secret key before nightly builds (#1375) 2021-09-03 11:49:10 -07:00
965ad2854b Improve no-JS landing page (#1367)
* improve landing page for no js

* update no js page

* update no js explanations

* Some text tweaks

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-08-31 14:53:21 -07:00
MeisamandGitHub e8e21ca45b Add support for loading the owncast URL in mpv (#1356)
* redirect players to hls link

* add VLC to players list
2021-08-31 14:49:04 -07:00
MeisamandGitHub 26041a0dc3 change admin 404 error log level to debug (#1342) 2021-08-21 18:16:27 -07:00
4cd7b254da keep the chat enabled on timer (#1313)
* keep the chat enabled on timer

* fix chat deactivation of stream stop

* simplify the chat status logic

* Use strict inequality

Co-authored-by: gingervitis <omqmail@gmail.com>

* Use strict inequality

Co-authored-by: gingervitis <omqmail@gmail.com>

Co-authored-by: gingervitis <omqmail@gmail.com>
2021-08-15 18:22:13 -07:00
MeisamandGitHub 31a8d81a42 Move emoji directory definition to config (#1317)
* mv emojiDir to config

* end comment with period
2021-08-14 12:48:04 -07:00
MeisamandGitHub f7d0bd1b1f fix chat message pagination (#278) 2021-08-14 12:22:05 -07:00
MeisamandGitHub b98c8b1876 fix black-on-black text (#270) 2021-08-10 12:13:11 -07:00
MeisamandGitHub 7e6f53c846 Add standalone chat with ability to send messages (#1270)
* properly pass the messagesOnly to chat

* use actual username if embed is not messageonly

* mv embed chat to chat-overlay

* add new embed chat page

* fix router

* secure random number for non-secure application!

* add chat enable/disable functionality

* add username form

add customStyles

* mv overlay css

* add style for embed chat

style cleanup

* rm username form from chat overlay

* refactoring

* css cleanup

css adjust

* minor cleanup

* mark the embed chats as readonly and readwrite

* replace 301 redirects with 307

* add redirect for the cached address

* set insatnce name in chat
2021-07-31 16:21:30 -07:00
MeisamandGitHub 41a7e8b896 check the return value of os.Rename (#1288) 2021-07-31 14:59:02 -07:00
MeisamandGitHub 2ff9186ee2 fix updateAuthorList (#1276) 2021-07-27 16:55:19 -07:00
MeisamandGitHub 109d2669ab better chat message sanitization (#1266)
* strip <p> in chat sanitization, keep the content

* update sanitization tests

* update tests

* rm <p></p> comparison for empty messages
2021-07-27 15:26:27 -07:00
MeisamandGitHub 44f406caf0 reject user messages when offline (#1269) 2021-07-27 10:42:05 -07:00
MeisamandGitHub f07c9e2e00 consider <p></p> as an empty message (#1264) 2021-07-26 09:21:48 -07:00
MeisamandGitHub 10456b0a01 Remove user's own name from the autocomplete suggestions (#1258)
* remove the username from list

* fix updateAuthorList returns
2021-07-25 22:26:27 -07:00
MeisamandGitHub 7526b5305c add emoji to the caret position (#1253) 2021-07-24 10:25:40 -07:00
MeisamandGitHub bb09c0d187 Autocomplete emoji names (#1250)
* generalize autoComplete function

* autocomplete emoji names

* isolate the state of each token

* minor fix

* save emojiNames in state
2021-07-23 14:15:25 -07:00
MeisamandGitHub 7867260b9c getCaretPosition considering all html elements (#1246) 2021-07-23 11:20:59 -07:00
MeisamandGitHub e1c4b452e6 test emoji title and alt tag sanitization (#1244) 2021-07-23 11:01:30 -07:00
MeisamandGitHub a8e93de134 Prevent remote image injection with /img/emoji/ in url (#1245)
* test remote img blocking with /img/emoji/ in url

* fix emoji filter

prevent injection of remote img with /img/emoji in url
2021-07-23 11:00:04 -07:00
MeisamandGitHub c4c1ecfc7b Allow alt and title tags in chat emojis (#1241)
* allow alt and title on chat imgs

* enforce non-empty alt&title tags for emojis
2021-07-22 22:22:33 -07:00
MeisamandGitHub 9e2746fb52 rm chat disable btn from server settings page (#260) 2021-07-22 09:42:07 -07:00
MeisamandGitHub 3b98bc01c2 rm username and message count from viewer-info (#258) 2021-07-21 10:03:07 -07:00
MeisamandGitHub 54932f533c override selected table background (#252) 2021-07-19 17:51:28 -07:00
MeisamandGitHub 617156b18d link assets under the same protocol for bots (#1187)
* link assets under the same protocol

* use // for metadata  urls
2021-07-17 20:28:20 -07:00
MeisamandGitHub a00052ef89 set summary in metadata (#1185) 2021-07-13 14:44:03 -07:00
MeisamandGitHub d042fd70d1 Cache the custom emoji list (#1175)
* use emojiCache

* add emojiCacheTimestamp

* add function description

* better logging
2021-07-11 15:34:56 -07:00
MeisamandGitHub 08b6c4e3cf Better handling of os.Stat() errors (#1173) 2021-07-09 18:31:43 -07:00
MeisamandGitHub 7361578412 style fix for error checking (#1170)
+additional linting
2021-07-09 11:16:44 -07:00
MeisamandGitHub a13e1e75e2 proper cleanup and permission check for the hls directory (#1167)
* check error on hls cleanup

* rm HLS directories before creating new ones

* don't mask the variable

* mv cleanupDirectory() to utils

* add user-friendly error messages
2021-07-08 12:35:53 -07:00
MeisamandGitHub 7a1f9dcd9a Don't allow people to set their instance name to an empty string (or only whitespace) (#240)
* make server name required

* prevent space-only instance name

* add useTrimLead to TextFieldProps
2021-07-03 13:52:37 -07:00
MeisamandGitHub a84aa72ee4 fix save button enable for acl/serving_endpoint (#239) 2021-07-02 16:07:11 -07:00
MeisamandGitHub 3b6ef78ff7 fix video variant sorting (#1150) 2021-07-01 18:17:50 -07:00
MeisamandGitHub f64d06279d Collapse news content in the admin home page (#236)
* use Collapse for news feed

* set url as the Panel key
2021-07-01 12:09:06 -07:00
MeisamandGitHub e991199735 updates to backups directory (#1099)
* read BackupDirectory from command line flag

* Change the default backup directory

* mkdir BackupDirectory

* use config for backup file path

* migrateDatabase to the backup directory

* use DoesFileExists

change permission on the directory to 0700

* declare err

* generate backupFile  where needed

* style fix

* more style fixes

* more style fixes
2021-06-13 15:28:59 -07:00
MeisamandGitHub 2659dc3646 Hide viewer count when offline (#1091)
* Hide viewer count when offline

* cleanup
2021-06-10 10:59:51 -07:00
MeisamandGitHub c77782cd35 inject custom style (#1083) 2021-06-07 13:53:25 -07:00
MeisamandGitHub 8b57ddcfb1 Remove config file migrator (#1045)
* rm migrator consts

* Delete migrator.go

* rm RunMigrations()
2021-05-23 13:36:34 -07:00
MeisamandGitHub 5c48ead518 Update video.css (#1012)
fix for issue #951
2021-05-13 12:02:57 -07:00